Something in my python path must have changed because now I cannot run the.
python app/manage.py runserver
The output I get is
I agreed with OP. I met the same problem, and it turned out to be an error in settings.py
:
In settings.py I use os.environ[something]
and those environment variables are loaded in apache start script. If I run manage.py
from the command line, it doesn't know what is os.environ[something]
thus error occurs.
So for anyone here searching for solution, suggestion is to check circumstance difference between running django project and pure manage.py, maybe you'll find what's wrong.