Skip to content

Instantly share code, notes, and snippets.

@alexander-ae
Created January 6, 2015 19:41
Show Gist options
  • Save alexander-ae/fd9fde9c31c8b9c94bdb to your computer and use it in GitHub Desktop.
Save alexander-ae/fd9fde9c31c8b9c94bdb to your computer and use it in GitHub Desktop.
wsgi.py (windows)
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