download
Command Line pip install django == 1.11.23 -i source address
create
Command line dajango-admin startproject project name
start up
To the project root directory, execute the command line
python manage.py runserver # 127.0.0.1:8000 default python manage.py runserver 80 # 127.0.0.1:80 modify the port python manage.py runserver 0.0.0.0:80 # 0.0.0.0:80 all hosts are allowed access through port 80
Creating APP
python manage.py startapp app name
Database Migration
python manage.py makemigrations (app name) # records change models under App recorded record python manage.py migrate # sync migration # Create the Root python manage.py createsuperuser