django命令大全
生活随笔
收集整理的這篇文章主要介紹了
django命令大全
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
1.命令大全
創(chuàng)建項目和注冊app 1.django-admin startproject xxx 創(chuàng)建項目xxx 2.python manage.py startapp xxx 注冊app ---------------------------------------------- ? 數(shù)據(jù)庫遷移 3.python manage.py makemigrations 生成數(shù)據(jù)遷移文件 4.python manage.py migrate 遷移數(shù)據(jù) ---------------------------------------------- ? python manage.py runserver 運行django服務(wù)器 python manage.py createsuperuser 創(chuàng)建超級管理員 ----------------------------------------------其他不常用 django-admin --help 查看可以執(zhí)行的指令! python manage.py + 回車 可查看更多命令 python manage.py flush 清空數(shù)據(jù)庫 python manage.py shell 進(jìn)入到調(diào)試代碼的調(diào)試模式總結(jié)
以上是生活随笔為你收集整理的django命令大全的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: IE8兼容border-radius
- 下一篇: 重装Intel核显后,设备管理器英特尔显