windows下python3.6 32bit 安裝django


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

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM