Code

Opened 9 years ago

Closed 9 years ago

Last modified 8 years ago

#135 closed defect (fixed)

Document mod_python behavior with more than one SETTINGS in a vhost

Reported by: Manuzhai Owned by: jacob
Component: Documentation Version:
Severity: normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

URL resolving will be unstable if more than one DJANGO_SETTINGS_MODULE is referenced within a vhost (for example, in different locations) due to mod_python caching. This should be documented in the mod_python doc.

Attachments (0)

Change History (4)

comment:1 Changed 9 years ago by adrian

  • Resolution set to fixed
  • Status changed from new to closed

(In [275]) Fixed #135 -- Added 'Multiple Django installations on the same Apache' to docs/mod_python.txt

comment:2 Changed 9 years ago by mfenniak@…

I believe this can be addressed by using mod_python's PythonInterpreter directive. This can force mod_python to use seperate python interpreter instances. For example:

<Location "/">
    SetHandler python-program
    PythonHandler django.core.handlers.modpython
    SetEnv DJANGO_SETTINGS_MODULE mysite.settings.main
    ...
    PythonInterpreter mysite.main
</Location>

<Location "/admin">
    SetHandler python-program
    PythonHandler django.core.handlers.modpython
    SetEnv DJANGO_SETTINGS_MODULE mysite.settings.admin
    ...
    PythonInterpreter mysite.admin
</Location>

This configuration seems to work for me. The PythonInterpreter directive is documented at http://www.dusek.ch/manual/apache/mod_python/dir-other-pi.html.

comment:3 Changed 9 years ago by anonymous

  • Resolution fixed deleted
  • Status changed from closed to reopened

comment:4 Changed 9 years ago by adrian

  • Resolution set to fixed
  • Status changed from reopened to closed

Fixed in [277].

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.