manage.py是對(duì)django-admin的封裝,每個(gè)django項(xiàng)目都有一個(gè)manage.py
Type 'manage.py help <subcommand>' for help on a specific subcommand.
Available subcommands:
[auth]
changepassword(修改密碼)
createsuperuser(創(chuàng)建超級(jí)管理員)
[django]
check(檢查django項(xiàng)目完整性)
compilemessages(編譯語(yǔ)言文件)
createcachetable(創(chuàng)建緩存表)
dbshell(進(jìn)入 django db shell)
(查看配置文件的改動(dòng))
dumpdata(導(dǎo)出數(shù)據(jù))
flush(清空數(shù)據(jù)庫(kù))
inspectdb
loaddata(導(dǎo)入數(shù)據(jù))
makemessages(創(chuàng)建語(yǔ)言文件)
makemigrations(生成數(shù)據(jù)庫(kù)同步腳本)
migrate(同步數(shù)據(jù)庫(kù))
runserver
sendtestemail
shell(進(jìn)入django shell)
showmigrations(查看生成的數(shù)據(jù)庫(kù)同步腳本)
sqlflush(查看生成清空數(shù)據(jù)庫(kù)的腳本)
sqlmigrate(查看數(shù)據(jù)庫(kù)同步的sql文件)
sqlsequencereset
squashmigrations
startapp(創(chuàng)建一個(gè)app)
startproject(創(chuàng)建一個(gè)django項(xiàng)目)
test
testserver
[sessions]
clearsessions(清除sessions)
[staticfiles]
collectstatic(靜態(tài)文件收集)
findstatic(尋找靜態(tài)文件)
runserver(啟動(dòng)服務(wù))