Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
If on shared, then see the corresponding section of the documentation . Create an .htaccess that tells Apache to use mod_wsgi to run the script:
Options +ExecCGI
AddHandler wsgi-script .wsgi
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ /index.wsgi/$1 [QSA,PT,L]
activate_this = 'ПУТЬ_ДО_ОКРУЖЕНИЯ/bin/activate_this.py'
exec(open(activate_this).read())
import sys
sys.path.insert(0, 'ПУТЬ_ДО_ПРОЕКТА')
sys.path.insert(1, 'ПУТЬ_ДО_ПАКЕТОВ_PYTHON')
from ИМЯ_МОДУЛЯ import app as application
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question