Permalink
Browse files

Python 2.7 compatible

  • Loading branch information...
1 parent 5baa819 commit 79c0b779e84fe610772265ee5b4f0f61ebb9bdf5 @dustball dustball committed Apr 17, 2013
Showing with 7 additions and 4 deletions.
  1. +1 −0 app.yaml
  2. +6 −4 main.py
View
@@ -2,6 +2,7 @@ application: hackerdojo-kiosk
version: 1
runtime: python
api_version: 1
+threadsafe: true
handlers:
- url: /static
View
10 main.py
@@ -3,7 +3,8 @@
import wsgiref.handlers
from google.appengine.ext.webapp import template
-from google.appengine.ext import webapp
+from google.appengine.ext import webapp
+from google.appengine.ext.webapp.util import run_wsgi_app
class MainHandler(webapp.RequestHandler):
@@ -12,8 +13,9 @@ def get(self):
def main():
application = webapp.WSGIApplication([('/', MainHandler)], debug=True)
- wsgiref.handlers.CGIHandler().run(application)
+ run_wsgi_app(application)
if __name__ == '__main__':
- main()
-
+ main()
+
+

0 comments on commit 79c0b77

Please sign in to comment.