Skip to content

Instantly share code, notes, and snippets.

Created August 13, 2018 17:07
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Django +Apache wsgi conf
WSGI config for MyProject project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
import os
os.environ["DJANGO_SETTINGS_MODULE"] = "MyProject.settings"
#if Use ENV
#import sys
#from os.path import join,dirname,abspath
#PROJECT_DIR = dirname(dirname(abspath(__file__)))
#sys.path.insert(0, PROJECT_DIR)
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