From 39a52bbe34d51aa8f4d7a8ad5d685d47ef56c457 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Thu, 11 Sep 2014 19:09:49 -0500 Subject: 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 --- archweb.wsgi | 4 ++-- 1 file 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) -- cgit v1.2.3-55-g3dc8