Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#22116 closed Cleanup/optimization (fixed)

Add note to Apache deployment re: virtualenv on Windows

Reported by: anonymous Owned by: donjpacheco
Component: Documentation Version: 1.6
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description

Here is a quote from the "Using a virtualenv" section of the "How to use Django with Apache and mod_wsgi" documentation:

"To do this, add an additional path to your WSGIPythonPath directive, with multiple paths separated by a colon:"

I was trying to do this on Windows and it wasn't working. I eventually found out that on Windows it needs to be separated with a semicolon, not a colon. Here is a quote from the top of the Apache/mod_wsgi documentation:

"If multiple directories are specified they should be separated by a ‘:’ if using a UNIX like system, or ‘;’ if using Windows. If any part of a directory path contains a space character, the complete argument string to WSGIPythonPath must be quoted."

That last bit may be good to include in the Django documentation as well.

Attachments (1)

django.diff (916 bytes) - added by donjpacheco 3 years ago.

Download all attachments as: .zip

Change History (6)

comment:1 Changed 3 years ago by Baptiste Mispelon

Triage Stage: UnreviewedAccepted
Type: UncategorizedCleanup/optimization

Yes, absolutely.

comment:2 Changed 3 years ago by donjpacheco

Owner: changed from nobody to donjpacheco
Status: newassigned

Changed 3 years ago by donjpacheco

Attachment: django.diff added

comment:3 Changed 3 years ago by donjpacheco

Has patch: set

comment:4 Changed 3 years ago by Claude Paroz <claude@…>

Resolution: fixed
Status: assignedclosed

In 3a5da7a11c009e46a50a8c4f432deb890151740a:

[1.6.x] Fixed #22116 -- Added precision about WSGIPythonPath separator

Thanks donjpacheco for the initial patch.
Backport of 91f4a75a6b from master.

comment:5 Changed 3 years ago by Claude Paroz <claude@…>

In 91f4a75a6b83c51aae7318d6aec4e5557ffe42ff:

Fixed #22116 -- Added precision about WSGIPythonPath separator

Thanks donjpacheco for the initial patch.

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