Commits

Shinya Okano committed b831797

python27のランタイムに対応

Comments (0)

Files changed (4)

tokibito/app.yaml

-application: tokibito
+application: tokibito-hrd
 version: 1
-runtime: python
+runtime: python27
 api_version: 1
+threadsafe: true
 
 handlers:
 - url: /robots\.txt
   static_dir: static/css
 
 - url: /presentation/create
-  script: main.py
+  script: main.application
   login: admin
 
 - url: .*
-  script: main.py
+  script: main.application
+
+builtins:
+- datastore_admin: on
+- deferred: on
+- appstats: on
+- remote_api: on
+
+libraries:
+- name: webob
+  version: latest
+- name: django
+  version: latest

tokibito/appengine_config.py

Empty file added.
     except UnicodeDecodeError:
         return ret
 
-def main():
+
+def application(environ, start_response):
     # logging exception
     try:
         from tokky.entrypoint import get_root_application
         root_application = get_root_application()
-        util.run_wsgi_app(root_application)
+        return root_application(environ, start_response)
     except Exception, e:
         import logging
         logging.error(get_traceback(sys.exc_info()))
         raise
 
+def main():
+    util.run_wsgi_app(application)
+
+
 if __name__ == '__main__':
     main()

tokibito/templates/presentation/page.html

   </head>
 
   <body>
-    {{ object.body|s6rest|s6embed }}
+    {{ object.body|s6rest|s6embed|safe }}
   </body>
 </html>