1
① 创建一个新的app
python manage.py startapp first_app
② settings.py注册
INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'first_app' ]
③ 删除不用的文件
test.py 测试
标签:app,py,django,contrib,Django,first From: https://www.cnblogs.com/fansblog/p/17628408.html