summaryrefslogtreecommitdiff
path: root/archweb.wsgi
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2014-09-11 19:09:49 -0500
committerDan McGee <dan@archlinux.org>2014-09-11 19:09:49 -0500
commit39a52bbe34d51aa8f4d7a8ad5d685d47ef56c457 (patch)
tree9b6a4e69c08d0913df6abe32aac1e9ab74827615 /archweb.wsgi
parent3e70c8107bda1194240f3269709be4ff3291e182 (diff)
Properly start the Django application in WSGI contextrelease_2014-09-11
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>
Diffstat (limited to 'archweb.wsgi')
-rw-r--r--archweb.wsgi4
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)