`
yy_gy
  • 浏览: 34465 次
  • 性别: Icon_minigender_2
社区版块
存档分类
最新评论

python django | sqlite3

阅读更多
1. python django-admin.py startproject projectname
2. python manage.py startapp appname
3. models.py==>data {ID is default defined}

4. sqlite3 development.sqlite3
5. update setting.py {DATABASES, INSTALLED_APPS}
6. python manage.py validate {succeed if 0 errors found}
7. python manage.py sqlall appname {generate database model based on the models.py}
8. python manage.py syncdb {create db}
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics