1.建立projectpython
$ django-admin startproject mysite
2.真正執行,修改數據庫sql
$ python manage.py migrate
3.運行服務數據庫
$ python manage.py runserver 8888
4.建立appdjango
$ python manage.py startapp polls
5.建立migrations目錄下的記錄條目app
$ python manage.py makemigrations polls
6.輸出app 的SQL語句(沒有執行到DB的)code
$ python manage.py sqlmigrate polls 0001
7.檢查server
$ python manage.py check