-
Notifications
You must be signed in to change notification settings - Fork 4
/
settings.py
65 lines (52 loc) · 1.61 KB
/
settings.py
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# Django Settings
# Reference: http://docs.djangoproject.com/en/1.3/ref/settings/
#
import os
PROJECT_NAME = "disarray"
PROJECT_ROOT = os.path.dirname(__file__)
try:
from local.settings import *
except ImportError:
raise Exception("local.settings module not defined!")
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.path.join(PROJECT_ROOT, 'local', 'stor', 'database.sqlite3')
}
}
TEMPLATE_DEBUG = DEBUG
MANAGERS = ADMINS
MEDIA_ROOT = os.path.join(PROJECT_ROOT, 'media')
MEDIA_URL = '/media'
ADMIN_MEDIA_PREFIX = '/admin_media/'
LOGIN_URL = '/login'
LOGIN_REDIRECT_URL = '/'
TEMPLATE_DIRS = ( os.path.join(PROJECT_ROOT, 'templates'), )
LANGUAGE_CODE = 'en-us'
TIME_ZONE = 'America/Los_Angeles'
SITE_ID = 1
USE_I18N = True
USE_L10N = True
ROOT_URLCONF = PROJECT_NAME + '.urls'
TEMPLATE_LOADERS = (
'django.template.loaders.filesystem.Loader',
'django.template.loaders.app_directories.Loader',
)
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',
)
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.admin',
'django.contrib.markup',
'taggit',
'disarray.task',
)