Permalink
Browse files

Upgrade appengine website to python 2.7.

  • Loading branch information...
1 parent 05e0a38 commit 488c0d27398187039ee8272313a11708427eed62 @bdarnell bdarnell committed Nov 18, 2012
Showing with 7 additions and 15 deletions.
  1. +7 −6 website/app.yaml
  2. +0 −9 website/website.py
View
@@ -1,14 +1,15 @@
application: python-tornado-hrd
-version: 2
-runtime: python
+version: 3
+runtime: python27
api_version: 1
+threadsafe: yes
handlers:
- url: /static/tornado-0.1.tar.gz
- script: website.py
+ script: website.application
- url: /static/tornado-0.2.tar.gz
- script: website.py
+ script: website.application
- url: /static/
static_dir: static
@@ -22,10 +23,10 @@ handlers:
upload: static/favicon.ico
- url: /documentation/?
- script: website.py
+ script: website.application
- url: /documentation
static_dir: sphinx/build/html
- url: /.*
- script: website.py
+ script: website.application
View
@@ -18,7 +18,6 @@
import os.path
import tornado.web
import tornado.wsgi
-import wsgiref.handlers
class ContentHandler(tornado.web.RequestHandler):
@@ -46,11 +45,3 @@ def get(self, path="index"):
dict(url="/documentation/index.html")),
], **settings)
-
-
-def main():
- wsgiref.handlers.CGIHandler().run(application)
-
-
-if __name__ == "__main__":
- main()

0 comments on commit 488c0d2

Please sign in to comment.