Django 1.4 Unknown command: 'runserver'

django, python, python-2.7

Solution

I've found the answer to my question.

- If you've got an error in your settings, manage.py will swallow the exception and report as if the command does not exist.

- This lead me down the path of incorrectly assuming my python path or venv environment was messed up.

If you want to diagnose this issue, run...

python app/manage.py help

... and it will show the exception. This, of course, was what was recommended by the django shell after it had told me that the command was not found.

This is clearly a bug in Django 1.4. It seems to me, an Exception should be reported regardless of what management command you run.

Problem

Something in my python path must have changed because now I cannot run the. ``` python app/manage.py runserver ``` The output I get is ``` Unknown command: 'runserver' Type 'manage.py help' for usage. ``` I've looked at my environment's PYTHONPATH and PATH variables, but I can't figure out why its not running.

Original source