Opened 13 years ago

Closed 13 years ago

#16564 closed Cleanup/optimization (duplicate)

'How to use Django with Apache and mod_wsgi' code snipped

Reported by: anonymous Owned by: nobody
Component: Documentation Version: 1.3
Severity: Normal 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

this is the original:

path = '/path/to/mysite'
if path not in sys.path:
    sys.path.append(path)

'/path/to/mysite' is maybe a little miss leading. maybe more accurate would be:

path = '/path/to'   # only '/path/to' part of '/path/to/mysite/settings.py'
if path not in sys.path:
    sys.path.append(path)

Change History (1)

comment:1 by Aymeric Augustin, 13 years ago

Resolution: duplicate
Status: newclosed

I think this is a subset of #15058.

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