Commits

Anonymous committed 100393d Draft

Use WSGI dispatch in Py27 branch

  • Participants
  • Parent commits ec861a9
  • Branches py27

Comments (0)

Files changed (2)

   upload: static/robots.txt
 
 - url: /static/upload.py
-  script: main.py
+  script: main.application
 
 - url: /static/(script.js|styles.css)
   static_files: static/\1
 - url: /static
   static_dir: static
 
-- url: .*
-  script: main.py
+- url: /.*
+  script: main.application
 
 inbound_services:
 - mail
 
 libraries:
 - name: django
-  version: 1.2
+  version: 1.3
 django.core.signals.got_request_exception.disconnect(
     django.db._rollback_on_exception)
 
+# Create a Django application for WSGI.
+application = django.core.handlers.wsgi.WSGIHandler()
+
 
 def real_main():
   """Main program."""
-  # Create a Django application for WSGI.
-  application = django.core.handlers.wsgi.WSGIHandler()
   # Run the WSGI CGI handler with that application.
   util.run_wsgi_app(application)