Created
January 6, 2015 19:41
-
-
Save alexander-ae/fd9fde9c31c8b9c94bdb to your computer and use it in GitHub Desktop.
wsgi.py (windows)
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
import os | |
import sys | |
from os.path import dirname, realpath | |
# directorio del proyecto | |
SITE_ROOT = dirname(realpath(__file__)) | |
# entorno | |
sys.path = [SITE_ROOT, 'C:\Python27\Lib\site-packages'] + sys.path | |
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'config.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