Skip to content

Commit

Permalink
Add staticfiles to INSTALLED_APPS for docs.
Browse files Browse the repository at this point in the history
Remove unnecessary middleware.
  • Loading branch information
aaugustin committed Feb 8, 2013
1 parent 4bd5038 commit f4d3303
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions django_docs/settings.py
Expand Up @@ -9,6 +9,7 @@
# Keep around debug_toolbar and raven if the parent settings module installed # Keep around debug_toolbar and raven if the parent settings module installed
# them. # them.
_new_apps = [ _new_apps = [
'django.contrib.staticfiles',
'docs', 'docs',
'haystack', 'haystack',
] ]
Expand All @@ -18,6 +19,13 @@
_new_apps.append('raven.contrib.django') _new_apps.append('raven.contrib.django')
INSTALLED_APPS = _new_apps 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. # Where to store the build Sphinx docs.
if PRODUCTION: if PRODUCTION:
DOCS_BUILD_ROOT = BASE.parent.child('docbuilds') DOCS_BUILD_ROOT = BASE.parent.child('docbuilds')
Expand Down

0 comments on commit f4d3303

Please sign in to comment.