python开始问题

错误描述:运行django-admin.py或者是django-admin.py startproject 项目名称

Note that only Django core commands are listed as settings are not properly conf
igured (error: Requested setting INSTALLED_APPS, but settings are not configured
. You must either define the environment variable DJANGO_SETTINGS_MODULE or call
settings.configure() before accessing settings.).

解决办法

django-amdin.py 换成django-admin,去掉尾部的.py

 

posted @ 2017-07-25 13:33  韩璐  阅读(304)  评论(0编辑  收藏  举报