在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 創建成功