Closed GoogleCodeExporter closed 8 years ago
What you are seeing is exactly what expect to see. This is because the
directory that WSGI script files are loaded
from are not part of Python module search path. Some of the reasons why this
isn't the case is mentioned in:
http://code.google.com/p/modwsgi/wiki/ReloadingSourceCode#Reloading_In_Embedded_
Mode
but there are a lot of other reasons besides including security issues related
to putting application source code in
Apache document directories and the general disaster that comes from trying to
automatically add all script
directories into sys.path.
In short, put all your .py files in a different directory outside of the
document directory where the WSGI script file
is. Then use one of the available methods for adding that separate directory to
the Python module search path.
If want to discuss further, use the mod_wsgi mailing list.
Original comment by Graham.Dumpleton@gmail.com
on 16 Nov 2009 at 11:40
Original issue reported on code.google.com by
dio...@gmail.com
on 16 Nov 2009 at 11:24