public
Description: The source code for the Django Plugables application index.
Homepage: http://djangoplugables.com/
Clone URL: git://github.com/revyver/django-plugables.git
django-plugables / settings.py
100644 50 lines (41 sloc) 1.254 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
import os
 
# Getting Started
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
PROJECT_DIR = BASE_DIR
 
# Debug Settings
DEBUG = True
TEMPLATE_DEBUG = DEBUG
 
# Basic Settings
TIME_ZONE = 'America/Los_Angeles'
LANGUAGE_CODE = 'en-us'
 
# Cache Settings
if DEBUG:
    CACHE_BACKEND = "dummy:///"
else:
    CACHE_BACKEND = "memcached://127.0.0.1:11211/"
    CACHE_MIDDLEWARE_SECONDS = 60 * 60
    CACHE_MIDDLEWARE_KEY_PREFIX = 'pluggables'
 
# Site Settings
SITE_ID = 1
ROOT_URLCONF = 'urls'
USE_I18N = True
 
# Middleware
MIDDLEWARE_CLASSES = (
    'django.middleware.gzip.GZipMiddleware',
    'django.middleware.common.CommonMiddleware',
    'django.middleware.http.SetRemoteAddrFromForwardedFor',
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware',
    'django.middleware.doc.XViewMiddleware',
    'django.middleware.http.ConditionalGetMiddleware',
    'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware',
)
USE_ETAGS = True
APPEND_SLASH = True
 
# Template Settings
TEMPLATE_LOADERS = (
    'django.template.loaders.filesystem.load_template_source',
    'django.template.loaders.app_directories.load_template_source',
)
 
# Import Local Settings
from pluggables import *