Skip to content

Instantly share code, notes, and snippets.

@jeremyjbowers
Last active December 20, 2015 15:18
Show Gist options
  • Save jeremyjbowers/6152767 to your computer and use it in GitHub Desktop.
Save jeremyjbowers/6152767 to your computer and use it in GitHub Desktop.
Basic WSGI app for Inspections.
# Finally, something written in Python again.
# It's like drinking clean water after taking
# a mouthful of mud.
# Import OS so we can do some things to the
# operating system.
import os
# Set an environment variable exporting our
# Django settings module.
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "inspections.settings")
# Get this function from the Django core.
from django.core.wsgi import get_wsgi_application
# AND RUN IT.
application = get_wsgi_application()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment