~libravatar/libravatar/master

« back to all changes in this revision

Viewing changes to config/django.wsgi

  • Committer: Francois Marier
  • Date: 2016-01-10 22:12:32 UTC
  • mto: This revision was merged to the branch mainline in revision 939.
  • Revision ID: git-v1:249c1b27efd9448456faff54d156ee0d45e92ed9
Update to the new way to do WSGI scripts

https://docs.djangoproject.com/en/1.8/releases/1.7/#wsgi-scripts

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
if INSTALL_PATH not in sys.path:
19
19
    sys.path.append(INSTALL_PATH)
20
20
 
21
 
import django.core.handlers.wsgi
22
 
application = django.core.handlers.wsgi.WSGIHandler()
 
21
from django.core.wsgi import get_wsgi_application
 
22
application = get_wsgi_application()