创建一个app
terminal里执行命令
python manage.py startapp app名称
注册
settings配置
INSTALLED_APPS = [
'app01',
'app01.apps.App01Config' # 推荐写法
]
python manage.py startapp app名称
settings配置
INSTALLED_APPS = [
'app01',
'app01.apps.App01Config' # 推荐写法
]