Commit b9bb6bcb03cfb51f7c1d5e759f311115a07cde67
1 parent
17cba28932
Exists in
master
and in
1 other branch
去除页面缓存中间件
Showing
1 changed file
with
0 additions
and
1 deletions
Show diff stats
xp/settings.py
... | ... | @@ -94,7 +94,6 @@ TEMPLATE_LOADERS = ( |
94 | 94 | ) |
95 | 95 | |
96 | 96 | MIDDLEWARE_CLASSES = ( |
97 | - 'django.middleware.cache.UpdateCacheMiddleware', # 缓存中间件,必须放在开头 | |
98 | 97 | 'django.middleware.common.CommonMiddleware', |
99 | 98 | 'django.contrib.sessions.middleware.SessionMiddleware', |
100 | 99 | 'django.middleware.csrf.CsrfViewMiddleware', # 开启了CSRF,记得在POST表单中加{% csrf_token %},使用RequestContext | ... | ... |