Created
April 15, 2014 07:56
-
-
Save drakmail/10711839 to your computer and use it in GitHub Desktop.
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, sys | |
#Fix for passenger | |
INTERP = "/var/www/neroslavsky/data/python/bin/python" # путь к интерпретатору питона, удобно использовать virtualenv | |
if sys.executable != INTERP: os.execl(INTERP, INTERP, *sys.argv) | |
sys.path.append(os.getcwd()) | |
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "YOUAPP.settings_production") # заменить на название приложения | |
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