The option "startproject" has disappeared from django-admin.py

I apologize in advance for my emptiness. I tried to create a new project with "django-admin.py startproject blah" and I got the error message "startproject" - an unknown parameter for django-admin.py. This cannot be normal. Then I did "django-admin.py help" and looked at the possible arguments, and they were the same as the arguments for manage.py (startapp, sqlall, sqlflush). What happens next?

+3
source share
2 answers

If you are already in the project, it is startprojectexplicitly deleted from manage.pyand django-admin.py. From docstring to django.core.management.get_commands:

, , startproject , startapp , .

+5

Django:

[startproject] is disabled [...] when the environment
variable DJANGO_SETTINGS_MODULE has been set. To
re-enable it in these situations, [...] unset
DJANGO_SETTINGS_MODULE.

, , , , .

+1

Source: https://habr.com/ru/post/1717848/


All Articles