From 08285e7fae70c4f8d23d94dc4be63c5e3d74198c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8C=BF=E5=B0=8F=E5=A4=A9?= <1638245306@qq.com> Date: Sat, 7 Oct 2023 22:07:00 +0800 Subject: [PATCH 1/6] =?UTF-8?q?fix:=20=20=E5=AD=97=E5=85=B8=E5=AD=90?= =?UTF-8?q?=E9=9B=86=E7=82=B9=E5=87=BBX=E6=97=A0=E6=B3=95=E5=85=B3?= =?UTF-8?q?=E9=97=AD=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/application/settings.py | 6 ++++-- web/src/views/system/dictionary/subDict/index.vue | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/backend/application/settings.py b/backend/application/settings.py index b311baef0..a26d2835a 100644 --- a/backend/application/settings.py +++ b/backend/application/settings.py @@ -44,6 +44,9 @@ DEBUG = locals().get("DEBUG", True) ALLOWED_HOSTS = locals().get("ALLOWED_HOSTS", ["*"]) # Application definition +CUSTOM_APPS = [ + "dvadmin.system", +] INSTALLED_APPS = [ "django.contrib.auth", @@ -58,7 +61,7 @@ INSTALLED_APPS = [ "drf_yasg", "captcha", 'channels', - *locals().get("CUSTOM_APPS", []), # 所有项目里写的app需要在env.py文件里的CUSTOM_APPS中 + *locals().get("CUSTOM_APPS", []), # 自定义且需要字段权限控制的app写在上方的CUSTOM_APPS中 ] MIDDLEWARE = [ @@ -96,7 +99,6 @@ WSGI_APPLICATION = "application.wsgi.application" # Database # https://docs.djangoproject.com/en/3.2/ref/settings/#databases - DATABASES = { "default": { "ENGINE": DATABASE_ENGINE, diff --git a/web/src/views/system/dictionary/subDict/index.vue b/web/src/views/system/dictionary/subDict/index.vue index 65dd40092..ab7fdbb5a 100644 --- a/web/src/views/system/dictionary/subDict/index.vue +++ b/web/src/views/system/dictionary/subDict/index.vue @@ -1,5 +1,5 @@