先进入项目目录
在命令行执行:
python3 manage.py startapp app的名字
在setting中配置:
INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'books.apps.ZsgcConfig',
'books'
]
本文链接:http://task.lmcjl.com/news/15480.html