Created
October 10, 2016 21:49
-
-
Save deniszh/565457a140a49aae3e19b09ed7542473 to your computer and use it in GitHub Desktop.
wsgi.py
This file contains 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
import os | |
import sys | |
try: | |
# Django versions >= 1.9 | |
from django.utils.module_loading import import_module | |
except ImportError: | |
# Django versions < 1.9 | |
from django.utils.importlib import import_module | |
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'graphite.settings') # noqa | |
from django.conf import 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