From b9bb6bcb03cfb51f7c1d5e759f311115a07cde67 Mon Sep 17 00:00:00 2001 From: zhenchaozhu Date: Fri, 18 Nov 2016 17:46:54 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=99=A4=E9=A1=B5=E9=9D=A2=E7=BC=93?= =?UTF-8?q?=E5=AD=98=E4=B8=AD=E9=97=B4=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- xp/settings.py | 1 - 1 file changed, 1 deletion(-) diff --git a/xp/settings.py b/xp/settings.py index 6ec5aa2..3609346 100644 --- a/xp/settings.py +++ b/xp/settings.py @@ -94,7 +94,6 @@ TEMPLATE_LOADERS = ( ) MIDDLEWARE_CLASSES = ( - 'django.middleware.cache.UpdateCacheMiddleware', # 缓存中间件,必须放在开头 'django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', # 开启了CSRF,记得在POST表单中加{% csrf_token %},使用RequestContext -- 2.0.0