Last active
December 20, 2015 15:18
-
-
Save jeremyjbowers/6152767 to your computer and use it in GitHub Desktop.
Basic WSGI app for Inspections.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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