Skip to content

Instantly share code, notes, and snippets.

@komuw
Created March 17, 2015 11:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save komuw/4f9c5ecbf05ff2f2aaf2 to your computer and use it in GitHub Desktop.
Save komuw/4f9c5ecbf05ff2f2aaf2 to your computer and use it in GitHub Desktop.
django 1.3 wsgi.py
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings")
# This application object is used by the development server
# as well as any WSGI server configured to use this file.
import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()
#as opposed to later versions, who's wsgi.py looks like:
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "mobile_loans.settings")
from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment