|
|
@ -88,10 +88,10 @@ MIDDLEWARE = [ |
|
|
|
'django.contrib.sessions.middleware.SessionMiddleware', |
|
|
|
'django.contrib.sessions.middleware.SessionMiddleware', |
|
|
|
'django.middleware.common.CommonMiddleware', |
|
|
|
'django.middleware.common.CommonMiddleware', |
|
|
|
'django.middleware.csrf.CsrfViewMiddleware', |
|
|
|
'django.middleware.csrf.CsrfViewMiddleware', |
|
|
|
|
|
|
|
'dingxin_toolbox_drf.http.SetRemoteAddrFromForwardedFor', |
|
|
|
'django.contrib.auth.middleware.AuthenticationMiddleware', |
|
|
|
'django.contrib.auth.middleware.AuthenticationMiddleware', |
|
|
|
'django.contrib.messages.middleware.MessageMiddleware', |
|
|
|
'django.contrib.messages.middleware.MessageMiddleware', |
|
|
|
'django.middleware.clickjacking.XFrameOptionsMiddleware', |
|
|
|
'django.middleware.clickjacking.XFrameOptionsMiddleware', |
|
|
|
'dingxin_toolbox_drf.http.SetRemoteAddrFromForwardedFor', |
|
|
|
|
|
|
|
] |
|
|
|
] |
|
|
|
|
|
|
|
|
|
|
|
ROOT_URLCONF = 'dingxin_toolbox_drf.urls' |
|
|
|
ROOT_URLCONF = 'dingxin_toolbox_drf.urls' |
|
|
|