refactor: 重构配置文件

所有项目的app都放在env.py里的CUSTOM_APPS列表里注册,为了支持按照项目app查找model
This commit is contained in:
ahhui
2023-08-03 18:04:34 +08:00
committed by 李强
parent d59df6db7c
commit 7c27f95353
4 changed files with 33 additions and 6 deletions

View File

@@ -44,6 +44,8 @@ LOGIN_NO_CAPTCHA_AUTH = True
# ================================================= #
ALLOWED_HOSTS = ["*"]
CUSTOM_APPS = [
"dvadmin.system",
]
# daphne启动命令
#daphne application.asgi:application -b 0.0.0.0 -p 8000