Source

noodle-bucket / settings.py

import os

BASE_DIR = os.path.dirname(__file__)

ADMINS = (
    ('Steve Losh', 'steve@stevelosh.com'),
)
MANAGERS = ADMINS

# Deployment-specific settings should be set in local_settings.py!

# django-grappelli settings
GRAPPELLI_ADMIN_HEADLINE = 'Noodle Bucket'
GRAPPELLI_ADMIN_TITLE = 'Noodle Bucket'
GRAPPELLI_ADMIN_URL = '/admin/'

DEBUG_PROPAGATE_EXCEPTIONS = True

TIME_ZONE = 'America/New_York'
SITE_ID = 1
USE_I18N = False

MEDIA_ROOT = os.path.join(BASE_DIR, 'media/')
MEDIA_URL = '/media/'
ADMIN_MEDIA_PREFIX = '/media/admin/'

TEMPLATE_LOADERS = (
    'django.template.loaders.filesystem.load_template_source',
    'django.template.loaders.app_directories.load_template_source',
)

MIDDLEWARE_CLASSES = (
    'django.middleware.common.CommonMiddleware',
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware',
    'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware',
)

ROOT_URLCONF = 'noodlebucket.urls'

TEMPLATE_CONTEXT_PROCESSORS = (
    "django.core.context_processors.auth",
    "django.core.context_processors.request",
)

TEMPLATE_DIRS = (
   os.path.join(BASE_DIR, 'templates/'),
)

INSTALLED_APPS = (
    'grappelli',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.sites',
    'django.contrib.admin',
    'django.contrib.flatpages',
    'django.contrib.markup',
    'noodlebucket.feedback',
    'noodlebucket.mercurial_data',
    'noodlebucket.util',
    'gravatar',
    'typogrify',
)

from local_settings import *

if DEBUG:
    INSTALLED_APPS += ('django_extensions',)