Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Enable redirects on docs.dp.com.

  • Loading branch information...
commit f2afe9b0327435c0502456a94ee4edcbdaa4c867 1 parent 03b863c
Aymeric Augustin aaugustin authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  django_docs/settings.py
2  django_docs/settings.py
View
@@ -8,6 +8,7 @@
CACHE_MIDDLEWARE_KEY_PREFIX = 'djangodocs'
INSTALLED_APPS = [
+ 'django.contrib.redirects',
'django.contrib.sitemaps',
'django.contrib.sites',
'django.contrib.staticfiles',
@@ -23,6 +24,7 @@
'django.middleware.cache.UpdateCacheMiddleware',
'djangosecure.middleware.SecurityMiddleware',
'django.middleware.common.CommonMiddleware',
+ 'django.contrib.redirects.middleware.RedirectFallbackMiddleware',
'django.middleware.cache.FetchFromCacheMiddleware'
]
Please sign in to comment.
Something went wrong with that request. Please try again.