Blob Blame History Raw
diff -up cobbler-2.6.8/web/cobbler.wsgi.django17 cobbler-2.6.8/web/cobbler.wsgi
--- cobbler-2.6.8/web/cobbler.wsgi.django17	2015-05-06 13:36:59.000000000 -0600
+++ cobbler-2.6.8/web/cobbler.wsgi	2015-05-12 09:25:12.742538892 -0600
@@ -22,6 +22,6 @@ def application(environ, start_response)
         site.addsitedir(distutils.sysconfig.get_python_lib(prefix=environ['VIRTUALENV']))
         # Now all modules are available even under a virtualenv
 
-    import django.core.handlers.wsgi
-    _application = django.core.handlers.wsgi.WSGIHandler()
+    from django.core.wsgi import get_wsgi_application
+    _application = get_wsgi_application()
     return _application(environ, start_response)