app01.models.py中写类
python manage.py makemigrations
python manage.py migrate


python3 manage.py createsuperuser


1.单表
2.一对多:ForeignKey
3.多对多:Many2Many
4.一对一

www.cnblogs.com/wupeiqi/articles/5246483.html

 

posted on 2016-11-18 06:32  Alex0425  阅读(203)  评论(0编辑  收藏  举报