From 97e37da73eeef899628491aee9989ac4691b3784 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Tue, 25 Oct 2011 14:15:21 +0200 Subject: Update of documentation --- docs/conf/apache-modpython-virtualhost.conf | 13 +++++++++++++ docs/conf/apache-modpython.conf | 13 +++++++++++++ docs/conf/apache-wsgi.conf | 11 +++++++++++ docs/conf/django.wsgi | 5 +++++ 4 files changed, 42 insertions(+) create mode 100644 docs/conf/apache-modpython-virtualhost.conf create mode 100644 docs/conf/apache-modpython.conf create mode 100644 docs/conf/apache-wsgi.conf create mode 100644 docs/conf/django.wsgi (limited to 'docs/conf') diff --git a/docs/conf/apache-modpython-virtualhost.conf b/docs/conf/apache-modpython-virtualhost.conf new file mode 100644 index 0000000..06bbff8 --- /dev/null +++ b/docs/conf/apache-modpython-virtualhost.conf @@ -0,0 +1,13 @@ + + ServerName papillon.example.com + # directory path to the installation of Papillon + PythonPath "['/var/local/django/papillon/'] + sys.path" + SetHandler python-program + PythonHandler django.core.handlers.modpython + SetEnv DJANGO_SETTINGS_MODULE papillon.settings + # set it to on or off if in test or production environment + PythonDebug On + # put differents interpreter names if you deploy several Papillon + PythonInterpreter papillon + + diff --git a/docs/conf/apache-modpython.conf b/docs/conf/apache-modpython.conf new file mode 100644 index 0000000..5e0d15d --- /dev/null +++ b/docs/conf/apache-modpython.conf @@ -0,0 +1,13 @@ +# part of the address after the root of your site: EXTRA_URL + + # directory path to the installation of Papillon + PythonPath "['/var/local/django/papillon/'] + sys.path" + SetHandler python-program + PythonHandler django.core.handlers.modpython + SetEnv DJANGO_SETTINGS_MODULE papillon.settings + # set it to on or off if in test or production environment + PythonDebug On + # put differents interpreter names if you deploy several Papillon + PythonInterpreter papillon + + diff --git a/docs/conf/apache-wsgi.conf b/docs/conf/apache-wsgi.conf new file mode 100644 index 0000000..a5277e6 --- /dev/null +++ b/docs/conf/apache-wsgi.conf @@ -0,0 +1,11 @@ + + ServerName papillon.example.com + WSGIDaemonProcess ishtar processes=2 maximum-requests=500 threads=1 + WSGIProcessGroup ishtar + WSGIScriptAlias / /var/local/django/papillon/apache/django.wsgi + + ErrorLog ${APACHE_LOG_DIR}/papillon/error.log + LogLevel warn + CustomLog ${APACHE_LOG_DIR}/papillon/access.log combined + + diff --git a/docs/conf/django.wsgi b/docs/conf/django.wsgi new file mode 100644 index 0000000..7f86580 --- /dev/null +++ b/docs/conf/django.wsgi @@ -0,0 +1,5 @@ +import os, sys +sys.path.append('/var/local/django/papillon/') +os.environ['DJANGO_SETTINGS_MODULE'] = 'papillon.settings' +import django.core.handlers.wsgi +application = django.core.handlers.wsgi.WSGIHandler() -- cgit v1.2.3