From 039784ae754140632bbd5763bbd799980fa9b975 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9B=B7=E4=BA=8C=E7=8C=9B?= Date: Sat, 9 Nov 2019 18:51:00 +0800 Subject: [PATCH] =?UTF-8?q?U=20api=20=E5=90=AF=E7=94=A8=E8=AE=A4=E8=AF=81?= =?UTF-8?q?=E5=92=8C=E5=BC=82=E5=B8=B8=E5=A4=84=E7=90=86=E4=B8=AD=E9=97=B4?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- spug_api/spug/settings.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/spug_api/spug/settings.py b/spug_api/spug/settings.py index 0a39293..61d0392 100644 --- a/spug_api/spug/settings.py +++ b/spug_api/spug/settings.py @@ -36,6 +36,8 @@ INSTALLED_APPS = [ MIDDLEWARE = [ 'django.middleware.security.SecurityMiddleware', 'django.middleware.common.CommonMiddleware', + 'libs.middleware.AuthenticationMiddleware', + 'libs.middleware.HandleExceptionMiddleware', ] ROOT_URLCONF = 'spug.urls' @@ -66,4 +68,6 @@ USE_L10N = True USE_TZ = True -AUTHENTICATION_EXCLUDES = () +AUTHENTICATION_EXCLUDES = ( + '/account/login/', +)