Skip to content

Commit

Permalink
Fix cobbler#1488 django 1.7 support
Browse files Browse the repository at this point in the history
  • Loading branch information
oleksandr-minakov committed Feb 3, 2016
1 parent 8cde89f commit 74d5aaf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions web/cobbler.wsgi
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 74d5aaf

Please sign in to comment.