summaryrefslogtreecommitdiff
path: root/docs/conf
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@peacefrogs.net>2011-10-25 14:15:21 +0200
committerÉtienne Loks <etienne.loks@peacefrogs.net>2011-10-25 14:15:21 +0200
commit97e37da73eeef899628491aee9989ac4691b3784 (patch)
tree477fdf8ac29309f9ec8ebe8469c1a7139d8baadc /docs/conf
parent0d930f95701fbbc9b5b7fb9bc28c3a664a600f9a (diff)
downloadPapillon-97e37da73eeef899628491aee9989ac4691b3784.tar.bz2
Papillon-97e37da73eeef899628491aee9989ac4691b3784.zip
Update of documentation
Diffstat (limited to 'docs/conf')
-rw-r--r--docs/conf/apache-modpython-virtualhost.conf13
-rw-r--r--docs/conf/apache-modpython.conf13
-rw-r--r--docs/conf/apache-wsgi.conf11
-rw-r--r--docs/conf/django.wsgi5
4 files changed, 42 insertions, 0 deletions
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 @@
+<VirtualHost *:80>
+ 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
+</VirtualHost>
+
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
+<Location "/papillon/">
+ # 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
+</Location>
+
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 @@
+<VirtualHost *:80>
+ 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
+
+</VirtualHost>
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()