Avatar
💡
1 results for Apache Django Tip
  • 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 "[&#x27;/path/to/djangositedir/&#x27;] + 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.
    apache django tip Created Thu, 01 May 2008 12:56:01 +0000