參考https://www.cnblogs.com/yuyang26/p/7411269.htmlhtml
前提條件:python3.x環境 windowspython
步驟1 django
pip install Django==2.1.4 進行安裝 確認安裝
windows
步驟2 建立項目python3.x
cd 進入你想存放項目的路徑(書上的無腦操做都是存放到python安裝路徑scripts下) 執行 django-admin startproject autotset 建立項目code
cd 進入autotest目錄下,執行python manage.py runserver 啓動django項目server
默認端口是8000 若是要修改端口,執行 python manage.py runserver ip:8001htm