I am working on deploying a django app online, and thus need to use the Apache Location directive to point to my django app.
This is pretty straight forward:
<Location "/foo/"> SetHandler python-program PythonPath "['/path/to/djangositedir/'] + sys.path" PythonHandler django.core.handlers.modpython SetEnv DJANGO_SETTINGS_MODULE settings PythonDebug On </Location> Note: You will normally add / edit this in the httpd.conf file for your apache installation.
Basically, you just map “/foo/” to the python handler. Anytime someone goes to a URL that begins with “"/foo/”" on your site, it will be handled by Python and your django app.