django-admin.py: No “startproject” command

I was banging my head for a few minutes because django-admin.py wouldn’t accept and wasn’t showing the “startproject” command.

Well, it turns out that the “startproject” command is disabled when you have the DJANGO_SETTINGS_MODULE environment variable set.

See http://code.djangoproject.com/ticket/8639

I wish django-admin.py would instead display something like “startproject (disabled because DJANGO_SETTINGS_MODULE is set to ‘myproject.settings’)”. Maybe I’ll submit a patch…

One thought on “django-admin.py: No “startproject” command

Leave a Reply

Your email address will not be published.