diff options
author | Dan McGee <dan@archlinux.org> | 2014-09-11 19:09:49 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2014-09-11 19:09:49 -0500 |
commit | 39a52bbe34d51aa8f4d7a8ad5d685d47ef56c457 (patch) | |
tree | 9b6a4e69c08d0913df6abe32aac1e9ab74827615 | |
parent | 3e70c8107bda1194240f3269709be4ff3291e182 (diff) |
Properly start the Django application in WSGI context
Apparently things changed a while back, but no notice was given
anywhere. https://code.djangoproject.com/ticket/23437
Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r-- | archweb.wsgi | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/archweb.wsgi b/archweb.wsgi index f8de2b49..a0d969e7 100644 --- a/archweb.wsgi +++ b/archweb.wsgi @@ -30,8 +30,8 @@ try: except ImportError: pass -import django.core.handlers.wsgi -application = django.core.handlers.wsgi.WSGIHandler() +from django.core.wsgi import get_wsgi_application +application = get_wsgi_application() if using_newrelic: application = newrelic.agent.wsgi_application()(application) |