Skip to content

Commit a9726c4

Browse files
committed
Updated mod_wsgi docs to reference the sys.path hackery
1 parent c90858a commit a9726c4

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

docs/deploying/mod_wsgi.rst

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,12 @@ Store that file somewhere that you will find it again (e.g.:
6161
`/var/www/yourapplication`) and make sure that `yourapplication` and all
6262
the libraries that are in use are on the python load path. If you don't
6363
want to install it system wide consider using a `virtual python`_
64-
instance.
64+
instance. Keep in mind that you will have to actually install your
65+
application into the virtualenv as well. Alternatively there is the
66+
option to just patch the path in the `.wsgi` file before the import::
67+
68+
import sys
69+
sys.path.insert(0, '/path/to/the/application')
6570

6671
Configuring Apache
6772
------------------

0 commit comments

Comments
 (0)