Changeset 2783
- Timestamp:
- 04/28/06 20:55:59 (2 years ago)
- Files:
-
- django/branches/magic-removal/docs/modpython.txt (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/branches/magic-removal/docs/modpython.txt
r2726 r2783 32 32 SetHandler python-program 33 33 PythonHandler django.core.handlers.modpython 34 SetEnv DJANGO_SETTINGS_MODULE my project.settings34 SetEnv DJANGO_SETTINGS_MODULE mysite.settings 35 35 PythonDebug On 36 36 </Location> 37 37 38 ...and replace ``my project.settings`` with the Python path to your settings file.38 ...and replace ``mysite.settings`` with the Python path to your settings file. 39 39 40 40 This tells Apache: "Use mod_python for any URL at or under '/mysite/', using the … … 72 72 ServerName www.example.com 73 73 # ... 74 SetEnv DJANGO_SETTINGS_MODULE my project.settings74 SetEnv DJANGO_SETTINGS_MODULE mysite.settings 75 75 </VirtualHost> 76 76 … … 78 78 ServerName www2.example.com 79 79 # ... 80 SetEnv DJANGO_SETTINGS_MODULE my project.other_settings80 SetEnv DJANGO_SETTINGS_MODULE mysite.other_settings 81 81 </VirtualHost> 82 82 … … 90 90 # ... 91 91 <Location "/something"> 92 SetEnv DJANGO_SETTINGS_MODULE my project.settings93 PythonInterpreter my project92 SetEnv DJANGO_SETTINGS_MODULE mysite.settings 93 PythonInterpreter mysite 94 94 </Location> 95 95 96 96 <Location "/otherthing"> 97 SetEnv DJANGO_SETTINGS_MODULE my project.other_settings98 PythonInterpreter my project_other97 SetEnv DJANGO_SETTINGS_MODULE mysite.other_settings 98 PythonInterpreter mysite_other 99 99 </Location> 100 100 </VirtualHost> … … 154 154 SetHandler python-program 155 155 PythonHandler django.core.handlers.modpython 156 SetEnv DJANGO_SETTINGS_MODULE my project.settings156 SetEnv DJANGO_SETTINGS_MODULE mysite.settings 157 157 </Location> 158 158
