django new project error: Requested setting INSTALLED_APPS, but settings are not configured.

Learning django today, after installing django using anaconda, I want to create a new project:

django-admin.py startproject HelloWorld

But it gives an error:


Solution:

Just remove the .py after django-admin.py:

django-admin startproject HelloWorld

reason:

The online tutorial is to install django manually, then use django-admin.py. But I use pip to install django, which will automatically generate django-admin.exe, so it can be used directly.




Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325969435&siteId=291194637