Source

gnocchi-cms / gnocchi / cms / settings.py

Full commit
from django.conf import settings
import os.path

# For Views
PAGE_CACHE = getattr(settings, 'PAGE_CACHE', settings.DEBUG and 1 or 60*60*24)
DEFAULT_TEMPLATE = getattr(settings, 'DEFAULT_TEMPLATE', 'default.html')

# For Admin
# Django will give None for its own 'known' settings
STATIC_URL = getattr(settings, 'STATIC_URL')
if STATIC_URL is None:
    STATIC_URL = settings.MEDIA_URL
CODEMIRROR = getattr(settings, 'CODEMIRROR',
    os.path.join(STATIC_URL, 'codemirror'))
WYMEDITOR = getattr(settings, 'CKEDITOR',
    os.path.join(STATIC_URL, 'ckeditor'))

# For Context Variables
CV_NAMESPACE = getattr(settings, 'CV_NAMESPACE', 'cv')
CV_CACHE_TIME = getattr(settings, 'CV_CACHE_TIME', 24*60*60)

# Sites Middleware
IGNORE_WWW_ZONE = getattr(settings, 'IGNORE_WWW_ZONE', True)
IGNORE_SERVER_PORT = getattr(settings, 'IGNORE_SERVER_PORT', True)