Skip to content

Commit

Permalink
Merge pull request cobbler#1634 from oleksandr-minakov/issue/1488
Browse files Browse the repository at this point in the history
Fix cobbler#1488 django 1.7 support
  • Loading branch information
jmaas committed Apr 17, 2016
2 parents aa93052 + 74d5aaf commit 03ea444
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 03ea444

Please sign in to comment.