Code

Opened 3 years ago

Closed 3 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)

Attachments (0)

Change History (1)

comment:1 Changed 3 years ago by aaugustin

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to duplicate
  • Status changed from new to closed

I think this is a subset of #15058.

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.