import sys
print(sys.argv)
import os, sys
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "Application.settings")
sys.path.append('/var/www/Application')
sys.path.append('/var/www/Application/Application')
from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()
ServerAdmin admin@somecompany.ru
Alias /static/ /var/www/Application/static/
Options -Indexes
Order deny,allow
Allow from all
WSGIDaemonProcess somecompany.ru processes=2 threads=15 display-name=%{GROUP}
WSGIProcessGroup somecompany.ru
WSGIScriptAlias / /var/www/Application/Application/wsgi.py
DocumentRoot /var/www/Application
Options -Indexes +FollowSymLinks +MultiViews
AllowOverride All
Order allow,deny
Allow from all
ErrorLog /var/log/apache2/site-error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/site-access.log combined