小打小闹  
# [django]
# 创建新的模块
python manage.py startapp 模块名  

#创建新项目
python manage.py startproject 

#创建当前应用的迁移数据文件
python manage.py makemigratios 模块名

#生成数据库表
python manage.py migrate

#查看迁移文件生成的SQL语句
python manage.py sqlmigrete 模块名 0001

#根据已有的数据库表反向生成Models
python manage.py inspectdb>模块名/models.py

[auth]
    changepassword
    createsuperuser

[contenttypes]
    remove_stale_contenttypes

[django]
    check
    compilemessages
    createcachetable
    dbshell
    diffsettings
    dumpdata
    flush
  
    loaddata
    makemessages

    sendtestemail
    shell
    showmigrations
    sqlflush
    sqlmigrate
    sqlsequencereset
    squashmigrations
    startapp
    startproject
    test
    testserver

[sessions]
    clearsessions

[staticfiles]
    collectstatic
    findstatic
    runserver

 

posted on 2020-08-24 16:09  小打小闹  阅读(1509)  评论(0)    收藏  举报