在Windows下python3.6安装Django1.11.3
1.首先下载地址:https://pypi.python.org/pypi/Django/1.11.3
pip install django安装django1.11.3
2.创建django项目使用django-admin.py这个文件,所以python3.6.1\Lib\site-packages\Django-1.11.3-py3.6.egg\django\bin下,将其添加到环境变量
3.在执行django-admin.py 时出现这不是win32内部命令的错误
修改.py文件的默认打开方式
选择python.exe
3.django-admin.py startproject helloworld创建项目 失败始终提示
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-admin startproject helloworld 创建成功