Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added redirects middleware to djangoproject.com settings; fixes #868

git-svn-id: http://code.djangoproject.com/svn/djangoproject.com@1338 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit d6a0b92e7698d4c408e641571ef69e8aab353679 1 parent eb1c9a2
jacob authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 django_website/settings/main.py
6 django_website/settings/main.py
View
@@ -41,6 +41,8 @@
CACHE_MIDDLEWARE_GZIP = True
MIDDLEWARE_CLASSES = (
- "django.middleware.common.CommonMiddleware",
-# "django.middleware.cache.CacheMiddleware",
+ 'django.middleware.sessions.SessionMiddleware',
+ 'django.middleware.common.CommonMiddleware',
+ 'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware',
+ 'django.contrib.redirects.middleware.RedirectFallbackMiddleware',
)
Please sign in to comment.
Something went wrong with that request. Please try again.