Django
Jump to navigation
Jump to search
example apache config
Below apache config works with the debian django repository (specifically, the static alias is on a separate location). Outside of that the django instance zealot is stored in /var/django/zealot.
<VirtualHost *:8080> ServerName fuego.lipmann.us Alias /media/ /var/django/media/ Alias /static/ /usr/share/python-django-common/django/contrib/admin/static/ <Directory /var/django/static> Require all granted </Directory> <Directory /var/django/media> Require all granted </Directory> WSGIDaemonProcess zealot python-path=/var/django:/usr/lib/python3.4 WSGIProcessGroup zealot WSGIScriptAlias / /var/django/zealot/wsgi.py <Directory /var/django/zealot/> <Files wsgi.py> Require all granted </Files> </Directory> </VirtualHost>