Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add staticfiles to INSTALLED_APPS for docs.

Remove unnecessary middleware.
  • Loading branch information...
commit f4d3303581fd38f0deb09089b3163b32324beba5 1 parent 4bd5038
@aaugustin aaugustin authored
Showing with 8 additions and 0 deletions.
  1. +8 −0 django_docs/settings.py
View
8 django_docs/settings.py
@@ -9,6 +9,7 @@
# Keep around debug_toolbar and raven if the parent settings module installed
# them.
_new_apps = [
+ 'django.contrib.staticfiles',
'docs',
'haystack',
]
@@ -18,6 +19,13 @@
_new_apps.append('raven.contrib.django')
INSTALLED_APPS = _new_apps
+MIDDLEWARE_CLASSES = [
+ 'django.middleware.common.CommonMiddleware',
+]
+if PRODUCTION:
+ MIDDLEWARE_CLASSES.insert(0, 'django.middleware.cache.UpdateCacheMiddleware')
+ MIDDLEWARE_CLASSES.append('django.middleware.cache.FetchFromCacheMiddleware')
+
# Where to store the build Sphinx docs.
if PRODUCTION:
DOCS_BUILD_ROOT = BASE.parent.child('docbuilds')
Please sign in to comment.
Something went wrong with that request. Please try again.