操作数据库:
1:配置数据库:
2:创建app
django-admin startapp CommunityModel
3:配置app
4:创建表:
5:执行数据库命令:
python manage.py migrate(生成如下界面)
python3 manage.py makemigrations CommunityModel
python3 manage.py migrate CommunityModel(生成数据表)