Skip to content

Commit

Permalink
Updated default settings to match the improved documentation for Djan…
Browse files Browse the repository at this point in the history
…go Fiber

- use Django's global_settings
- added piston to INSTALLED_APPS
  • Loading branch information
dbunskoek committed Aug 10, 2011
1 parent a602785 commit 366267e
Showing 1 changed file with 8 additions and 15 deletions.
23 changes: 8 additions & 15 deletions settings_default.py
@@ -1,4 +1,7 @@
import os

import django.conf.global_settings as DEFAULT_SETTINGS

BASE_DIR = os.path.abspath(os.path.dirname(__file__))

DEBUG = True
Expand Down Expand Up @@ -77,9 +80,7 @@

# List of finder classes that know how to find static files in
# various locations.
STATICFILES_FINDERS = (
'django.contrib.staticfiles.finders.FileSystemFinder',
'django.contrib.staticfiles.finders.AppDirectoriesFinder',
STATICFILES_FINDERS = DEFAULT_SETTINGS.STATICFILES_FINDERS + (
'compressor.finders.CompressorFinder',
)

Expand All @@ -94,11 +95,8 @@
)

MIDDLEWARE_CLASSES = (
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'debug_toolbar.middleware.DebugToolbarMiddleware',
) + DEFAULT_SETTINGS.MIDDLEWARE_CLASSES + (
'fiber.middleware.ObfuscateEmailAddressMiddleware',
'fiber.middleware.AdminPageMiddleware',
'fiber.middleware.PageFallbackMiddleware',
Expand All @@ -112,13 +110,7 @@
# Don't forget to use absolute paths, not relative paths.
)

TEMPLATE_CONTEXT_PROCESSORS = (
'django.contrib.auth.context_processors.auth',
'django.core.context_processors.debug',
'django.core.context_processors.i18n',
'django.core.context_processors.media',
'django.core.context_processors.static',
'django.contrib.messages.context_processors.messages',
TEMPLATE_CONTEXT_PROCESSORS = DEFAULT_SETTINGS.TEMPLATE_CONTEXT_PROCESSORS + (
'django.core.context_processors.request',
'fiber.context_processors.page_info',
)
Expand All @@ -131,6 +123,7 @@
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.admin',
'piston',
'mptt',
'compressor',
'fiber',
Expand Down

0 comments on commit 366267e

Please sign in to comment.