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)