diff --git a/openstack_dashboard/management/commands/horizon.wsgi.template b/openstack_dashboard/management/commands/horizon.wsgi.template index 3832a2446..cc3bb2453 100644 --- a/openstack_dashboard/management/commands/horizon.wsgi.template +++ b/openstack_dashboard/management/commands/horizon.wsgi.template @@ -9,5 +9,5 @@ execfile(activate_this, dict(__file__=activate_this)) sys.path.insert(0, '{{ PROJECT_ROOT }}') os.environ['DJANGO_SETTINGS_MODULE'] = '{{ DJANGO_SETTINGS_MODULE }}' -import django.core.handlers.wsgi -application = django.core.handlers.wsgi.WSGIHandler() +import django.core.wsgi +application = django.core.wsgi.get_wsgi_application()