Permalink
Browse files

init commit, can not work yet.

  • Loading branch information...
0 parents commit ce7bc81150afcb90329aeba56617f86af7c2a434 @ydoovv ydoovv committed Oct 16, 2010
Showing with 67 additions and 0 deletions.
  1. +23 −0 app.yaml
  2. +11 −0 index.yaml
  3. +23 −0 main.py
  4. BIN static/favicon.ico
  5. +8 −0 static/index.html
  6. +2 −0 static/robots.txt
23 app.yaml
@@ -0,0 +1,23 @@
+application: digest-favs
+version: 1
+runtime: python
+api_version: 1
+
+#default_expiration: "4d 5h"
+
+handlers:
+- url: /favicon.ico
+ static_files: static/favicon.ico
+ upload: static/favicon.ico
+ mime_type: image/x-icon
+ expiration: "999d"
+- url: /static
+ static_dir: static
+- url: /admin/.*
+ script: $PYTHON_LIB/google/appengine/ext/admin
+ login: admin
+- url: /remote_api
+ script: $PYTHON_LIB/google/appengine/ext/remote_api/handler.py
+ login: admin
+- url: /.*
+ script: main.py
11 index.yaml
@@ -0,0 +1,11 @@
+indexes:
+
+# AUTOGENERATED
+
+# This index.yaml is automatically updated whenever the dev_appserver
+# detects that a new type of query is run. If you want to manage the
+# index.yaml file manually, remove the above marker line (the line
+# saying "# AUTOGENERATED"). If you want to manage some indexes
+# manually, move them above the marker line. The index.yaml file is
+# automatically uploaded to the admin console when you next deploy
+# your application using appcfg.py.
23 main.py
@@ -0,0 +1,23 @@
+#!/usr/bin/env python
+# -*- coding: utf-8 -*-
+"""Run some bot jobs on GAE."""
+
+from google.appengine.ext import db
+from google.appengine.ext import webapp
+from google.appengine.api import urlfetch
+from google.appengine.ext.webapp.util import run_wsgi_app
+
+class MainHandler(webapp.RequestHandler):
+ def get(self):
+ self.response.out.write("<h1>I'm here =.=!</h1>")
+
+def main():
+ application = webapp.WSGIApplication(
+ [
+ (r'/', MainHandler),
+ ],
+ debug=True)
+ run_wsgi_app(application)
+
+if __name__ == '__main__':
+ main()
BIN static/favicon.ico
Binary file not shown.
8 static/index.html
@@ -0,0 +1,8 @@
+<html>
+<head>
+<title>Index</title>
+</head>
+<body>
+<h1>Hello world!</h1> (static/index.html)
+</body>
+</html>
2 static/robots.txt
@@ -0,0 +1,2 @@
+User-Agent: *
+Disallow: /

0 comments on commit ce7bc81

Please sign in to comment.