PythonImport (for handling eggs) can't be placed inside VirtualHost or Location
|Reported by:||anonymous||Owned by:||Jacob|
|Severity:||Keywords:||mod_python, PythonImport, egg|
|Cc:||Triage Stage:||Ready for checkin|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Placing PythonImport inside of <Location> (as it is recommended in the Install mod_python documentation of Django) leads to an error when apache loads it's conf-file. Placing it inside <VirtualHost> doesn't work either.
PythonImport is a server config directive (compare http://www.modpython.org/pipermail/mod_python/2005-October/019272.html)
This means that the directive may be used in the server configuration files (e.g., httpd.conf), but not within any <VirtualHost> or <Directory> containers. It is not allowed in .htaccess files at all.
All the best for now - and thanks for developing Django!