创建一个app
terminal里执行命令
python manage.py startapp app名称
注册
settings配置
INSTALLED_APPS = [
'app01',
'app01.apps.App01Config' # 推荐写法
]
原文地址:https://www.cnblogs.com/-xct/p/12069409.html
时间: 2024-10-12 12:33:56
python manage.py startapp app名称
settings配置
INSTALLED_APPS = [
'app01',
'app01.apps.App01Config' # 推荐写法
]
原文地址:https://www.cnblogs.com/-xct/p/12069409.html