[Django]-How to set PYTHONPATH on web server

0👍

Use a virtual environment as documented in:

http://code.google.com/p/modwsgi/wiki/VirtualEnvironments

Also see:

http://code.google.com/p/modwsgi/wiki/ConfigurationDirectives#WSGIPythonPath

and the python-path option of:

http://code.google.com/p/modwsgi/wiki/ConfigurationDirectives#WSGIDaemonProcess

Which of the latter you might use depends on how you are running mod_wsgi.

So, lots of documentation available.

Leave a comment