changeset 932:92b4baa0383b

Update WSGI script for Django 1.7.7.
author Brian Neal <bgneal@gmail.com>
date Wed, 15 Apr 2015 20:29:13 -0500
parents 1354c3d651eb
children 0aa9aeaa98a6
files sg101/apache/sg101.wsgi
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/sg101/apache/sg101.wsgi	Wed Apr 15 20:27:05 2015 -0500
+++ b/sg101/apache/sg101.wsgi	Wed Apr 15 20:29:13 2015 -0500
@@ -35,8 +35,8 @@
 
 if not OFFLINE:
    os.environ['DJANGO_SETTINGS_MODULE'] = 'sg101.settings.production'
-   import django.core.handlers.wsgi
-   application = django.core.handlers.wsgi.WSGIHandler()
+   from django.core.wsgi import get_wsgi_application
+   application = get_wsgi_application()
 else:
    application = offline_handler