From 74d5aaf6cd581c21326476d009468fc546974f68 Mon Sep 17 00:00:00 2001 From: Oleksandr Minakov Date: Wed, 3 Feb 2016 16:27:56 +0200 Subject: [PATCH] Fix #1488 django 1.7 support --- web/cobbler.wsgi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/web/cobbler.wsgi b/web/cobbler.wsgi index 17d7362d47..a84db38f8e 100644 --- a/web/cobbler.wsgi +++ b/web/cobbler.wsgi @@ -24,5 +24,8 @@ def application(environ, start_response): # Now all modules are available even under a virtualenv import django.core.handlers.wsgi + import django + if hasattr(django, 'setup'): + django.setup() _application = django.core.handlers.wsgi.WSGIHandler() return _application(environ, start_response)