﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
14277	Error in documentation for mod_wsgi	nietpiet	elbarto	"Hi,

First, i'd like to say: Good work!
Second, i found some small errors in the documentation that describes Django deployment with mod_wsgi: http://docs.djangoproject.com/en/1.2/howto/deployment/modwsgi/

The documentation says to
 add ""sys.path.append('/usr/local/django') just above the final import line to place your project on the path.""

This is not correct. It should not be ""above"", it should be ""below"", ie, after importing sys:  ""just after the 'import sys' line to place your project on the path""
It does not work if you append a path to sys before importing sys itself. (Shoule be obvious but better to have it correct)

Further.. it is a little unclear that ""/usr/local/django"" is intended to be the same as ""/path/to/mysite"" which is used for the WSGIScriptAlias at the beginning of the document; while at the end of the document it suddenly changes again to: WSGIScriptAlias / /usr/local/wsgi/scripts/django.wsgi
This is not very clear, I think it is better to be consistent for file paths.
So, perhaps it is better to either use /path/to/mysite or alternatively, give a disclaimer that the local files are stored at /usr/local/django or at /usr/local/wsgi

Keep up the good work!

Kind regards,

Jan






"		closed	Documentation	1.2		fixed	deployment mod_wsgi		Accepted	1	0	0	0	0	0
