summaryrefslogtreecommitdiff
path: root/paste/modpython.py
diff options
context:
space:
mode:
authorbbangert <devnull@localhost>2006-08-30 03:47:41 +0000
committerbbangert <devnull@localhost>2006-08-30 03:47:41 +0000
commitbaf6866d3323ec136daee6b7250af1c36ad0013c (patch)
treec5b81a8c3cbdc330ce15dab4ee7e5a2fb16a13e3 /paste/modpython.py
parent01bbac80ac789e32631ffb8a6850396d03555a57 (diff)
downloadpaste-baf6866d3323ec136daee6b7250af1c36ad0013c.tar.gz
Fix for the documentation and example of normal wsgi.application.
Diffstat (limited to 'paste/modpython.py')
-rw-r--r--paste/modpython.py15
1 files changed, 13 insertions, 2 deletions
diff --git a/paste/modpython.py b/paste/modpython.py
index f3b29bf..98bf6f7 100644
--- a/paste/modpython.py
+++ b/paste/modpython.py
@@ -6,16 +6,27 @@ Example httpd.conf section for a Paste app with an ini file::
<Location />
SetHandler python-program
- PythonHandler mod_python.wsgi_paste
+ PythonHandler paste.modpython
PythonOption paste.ini /some/location/your/pasteconfig.ini
</Location>
+
+Or if you want to load a WSGI application under /your/homedir in the module
+``startup`` and the WSGI app is ``app``::
+
+ <Location />
+ SetHandler python-program
+ PythonHandler paste.modpython
+ PythonPath "['/virtual/project/directory'] + sys.path"
+ PythonOption wsgi.application startup::app
+ </Location>
+
If you'd like to use a virtual installation, make sure to add it in the path
like so::
<Location />
SetHandler python-program
- PythonHandler mod_python.wsgi_paste
+ PythonHandler paste.modpython
PythonPath "['/virtual/project/directory', '/virtual/lib/python2.4/'] + sys.path"
PythonOption paste.ini /virtual/project/directory/pasteconfig.ini
</Location>