[Answered ]-Works using Django development server, but throws import error with Apache using mod_wsgi

2πŸ‘

βœ…

Is it in the pythonpath for the webserver? All those β€˜/opt’ paths are typically not in the standard python path, so something is adding those for you I would guess. Are you sure it also gets added for the webserver process, or is PYTHONPATH set in some shell configfile somewhere for your user only?

There is a PythonPath directive when using mod_python, is there something similar for mod_wsgi?

This is almost certainly a case of the path not being the same for the webserver as it is for you, so I would focus my search in those areas.

πŸ‘€Epcylon

Leave a comment