Installation documentation should avoid sys.path.append
Using Apache's mod_wsgi implementation (and I'm sure some others), there are cases where sys.path.append will add redundant items to the system path. The mod_wsgi documentation requests that, instead, developers use the following in order to avoid these redundancies:
import sys
path = '/usr/local/wsgi/modules'
if path not in sys.path:
sys.path.append(path)
More information is available here: WSGIReloadMechanism
Change History
(6)
Has patch: |
set
|
milestone: |
→ 1.3
|
Owner: |
changed from nobody to Greg Wogan-Browne
|
Status: |
new → assigned
|
Triage Stage: |
Unreviewed → Accepted
|
Triage Stage: |
Accepted → Ready for checkin
|
Resolution: |
→ fixed
|
Status: |
assigned → closed
|
Agreed, the documentation should follow mod_wsgi best practices here.
The patch just contains the appropriate changes to the WSGI application without explanation. I'm not entirely sure whether a footnote is required or not.