Files
mayan-edms/contrib/apache/mayan-edms.wsgi
Mathias Behrle 75e99d62bb Updating apache contrib files.
Thanks to Gary Walborn for providing examples.
2014-09-13 21:00:53 +02:00

15 lines
572 B
Python
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# sample wsgi file for usage with apache webserver
# mayan installation in a virtualenv /opt/mayan/venv
# apache deployment in /var/www/mayan-edms
import os
import sys
import site
# set up python path to virtual environment
site.addsitedir(/opt/mayan/venv/lib/python2.7/site-packages)
sys.path.append(/var/www/mayan-edms)
os.environ[PYTHON_EGG_CACHE]=/var/www/django/cache
#django WSGI specifics
From django.core.handlers.wsgi import WSGIHandler
os.environ[DJANGO_SETTING_MODULE] = mayan.settings.production
application = WSGIHandler()