startproject > Unknown Command Posted on 2008-12-28 by Dave Fowler

This is hardly worth a post but I'd found nothing on google for the fix and so I'm documenting it here for others. In Django v 1.0 has smartly been altered to behave the same as ./ It seems that this has effected the startproject command in the event that your DJANGO_SETTINGS_MODULE environment variable is already set. If it is you'll get something like this:

$ startproject myproject Unknown command: 'startproject' Type ' help' for usage.

There's an easy fix. Just blank out your DJANGO_SETTINGS_MODULE variable and startproject will then be recognized.


$ startproject myproject