feat: 优化获取所有项目下的app里的models配置项

This commit is contained in:
李强
2023-11-30 20:23:52 +08:00
parent 5729aeb521
commit 120c737de7
3 changed files with 29 additions and 15 deletions

View File

@@ -43,10 +43,8 @@ sys.path.insert(0, os.path.join(PLUGINS_PATH))
DEBUG = locals().get("DEBUG", True)
ALLOWED_HOSTS = locals().get("ALLOWED_HOSTS", ["*"])
# Application definition
CUSTOM_APPS = [
"dvadmin.system",
]
# 列权限需要排除的App应用
COLUMN_EXCLUDE_APPS = ['channels', 'captcha'] + locals().get("COLUMN_EXCLUDE_APPS", [])
INSTALLED_APPS = [
"django.contrib.auth",
@@ -60,8 +58,8 @@ INSTALLED_APPS = [
"corsheaders", # 注册跨域app
"drf_yasg",
"captcha",
'channels',
*CUSTOM_APPS,
"channels",
"dvadmin.system",
]
MIDDLEWARE = [