Opened 17 years ago

Closed 17 years ago

Last modified 17 years ago

#5840 closed (invalid)

Error in mod_python documentation

Reported by: Derek Steinkamp <dsteinkamp@…> Owned by: nobody
Component: Documentation Version: dev
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

<VirtualHost *>
    ServerName www.example.com
    # ...
    <Location "/something">
        SetEnv DJANGO_SETTINGS_MODULE mysite.settings
        PythonInterpreter mysite
    </Location>

    <Location "/otherthing">
        SetEnv DJANGO_SETTINGS_MODULE mysite.other_settings
        PythonInterpreter mysite_other
    </Location>
</VirtualHost>

Should read:

<VirtualHost *>
    ServerName www.example.com
    # ...
    <Location "/something">
        SetEnv DJANGO_SETTINGS_MODULE mysite.settings
        PythonInterpreter mysite
    </Location>

    <Location "/otherthing">
        SetEnv DJANGO_SETTINGS_MODULE mysite_other.settings
        PythonInterpreter mysite_other
    </Location>
</VirtualHost>

(Change is in the second SetEnv line)

Change History (2)

comment:1 by Gary Wilson, 17 years ago

Resolution: invalid
Status: newclosed

It doesn't matter whether you're using two different settings files contained in the same project (i.e. mysite.settings and mysite.other_settings) or two different settings files from two different projects (i.e. mysite.settings and mysite_other.settings).

comment:2 by Gary Wilson, 17 years ago

In [6630], changed name of PythonInterpreter so as not to get confused with the use of DJANGO_SETTINGS_MODULE mysite.other_settings

Note: See TracTickets for help on using tickets.
Back to Top