Skip to content
This repository has been archived by the owner on Jan 19, 2021. It is now read-only.

Commit

Permalink
Merge pull request #1228 from johngian/fix-wsgi-1.7
Browse files Browse the repository at this point in the history
[Bug 1196244] Make wsgi script compatible with Django 1.7x
  • Loading branch information
johngian committed Aug 21, 2015
2 parents f2eb0fb + 6b23183 commit 8816edf
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions wsgi/playdoh.wsgi
Expand Up @@ -22,8 +22,9 @@ site.addsitedir(os.path.abspath(os.path.join(wsgidir, '../')))
# manage adds /apps, /lib, and /vendor to the Python path.
import manage

import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()
import django.core.wsgi.get_wsgi_application

application = django.core.wsgi.get_wsgi_application()

if newrelic:
application = newrelic.agent.wsgi_application()(application)
application = newrelic.agent.wsgi_application()(application)

0 comments on commit 8816edf

Please sign in to comment.