forked from gotlium/djangogenerator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.py
executable file
·104 lines (80 loc) · 2.13 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
import os
DEBUG = True
ADMINS = (
('root', 'root@localhost'),
)
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': 'db.sqlite',
'USER': '',
'PASSWORD': '',
'HOST': '',
'PORT': '',
},
}
PROJECT_PATH = os.path.normpath(os.path.dirname(__file__))
TIME_ZONE = 'America/Chicago'
SECRET_KEY = 'f&qqn^!buj-m7*g0g1za8-+g3u+le9hpmktng(yp*1^-z+'
TEMPLATE_DEBUG = DEBUG
MANAGERS = ADMINS
LANGUAGE_CODE = 'en-us'
SITE_ID = 1
USE_I18N = True
USE_L10N = True
USE_TZ = True
STATIC_ROOT = ''
if not DEBUG:
STATIC_ROOT = os.path.join(PROJECT_PATH, 'static')
MEDIA_ROOT = os.path.join(PROJECT_PATH, 'media')
STATICFILES_DIRS = (
os.path.join(PROJECT_PATH, 'static'),
)
STATIC_URL = '/static/'
MEDIA_URL = '/media/'
ADMIN_MEDIA_PREFIX = '/static/admin/'
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.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
)
TEMPLATE_CONTEXT_PROCESSORS = (
'django.contrib.auth.context_processors.auth',
'django.core.context_processors.debug',
'django.core.context_processors.i18n',
'django.core.context_processors.request',
'django.core.context_processors.media',
'django.contrib.messages.context_processors.messages',
'django.core.context_processors.static',
)
ROOT_URLCONF = 'urls'
LOGIN_REDIRECT_URL = '/project/list/'
LOGIN_URL = '/accounts/login/'
TEMPLATE_DIRS = (
os.path.join(PROJECT_PATH, 'templates'),
)
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.admin',
'registration',
'django_extensions',
'south',
'apps.project',
'apps.model',
'apps.field',
'apps.form',
'apps.application',
)
ACCOUNT_ACTIVATION_DAYS = 7
try:
from local_settings import *
except ImportError:
pass