-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings.py
More file actions
109 lines (94 loc) · 2.5 KB
/
settings.py
File metadata and controls
109 lines (94 loc) · 2.5 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
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
105
106
107
108
109
import os
ROOT = os.path.dirname(os.path.abspath(__file__))
path = lambda *parts: os.path.join(ROOT, *parts)
DEBUG = False
DEBUG_JS = False
DEBUG_CSS = False
TEMPLATE_CONTEXT_PROCESSORS = ()
TEMPLATE_DEBUG = False
ADMINS = () # no e-mail
MANAGERS = ()
SERVER_EMAIL = ""
EMAIL_SUBJECT_PREFIX = ""
SEND_BROKEN_LINK_EMAILS = False
SITE_ID = 1 # for redirects
TIME_ZONE = "Europe/Berlin"
LANGUAGE_CODE = "en-us"
USE_I18N = False
MEDIA_ROOT = path("media")
MEDIA_URL = "/media/"
ADMIN_MEDIA_PREFIX = "/admin/media/"
DEFAULT_CHARSET = "utf-8"
DEFAULT_CONTENT_TYPE = "text/html"
TEMPLATE_STRING_IF_INVALID = ""
TEMPLATE_DIRS = (
path('templates'),
)
TEMPLATE_LOADERS = (
'django.template.loaders.filesystem.Loader',
'django.template.loaders.app_directories.Loader',
)
TEMPLATE_CONTEXT_PROCESSORS += (
"django.core.context_processors.debug",
"django.contrib.auth.context_processors.auth",
)
INSTALLED_APPS = (
"django.contrib.auth",
"django.contrib.contenttypes",
"django.contrib.sessions",
"django.contrib.sites",
"django.contrib.admin",
"django.contrib.humanize",
"django.contrib.comments",
"django_nose",
"blogging",
"custom_comments",
"galleries",
"management",
"tf",
"photologue",
)
ROOT_URLCONF = "thefoundation.urls"
MIDDLEWARE_CLASSES = (
'tf.middleware.LogExceptionsMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.middleware.cache.CacheMiddleware',
'django.middleware.gzip.GZipMiddleware',
'django.middleware.http.ConditionalGetMiddleware',
'django.middleware.common.CommonMiddleware',
'tf.middleware.CurrentUserMiddleware',
)
LOGGING = {
'version': 1,
'disable_existing_loggers': True,
'formatters': {
'verbose': {
'format': '%(asctime)s| %(name)-10s | %(levelname)-5s %(message)s'
},
},
'handlers': {
'logfile':{
'level': 'INFO',
'formatter': 'verbose',
'class':'logging.FileHandler',
'filename': path('../log/thefoundation.log'),
},
},
'loggers': {
'': {
'handlers': ['logfile'],
'propagate': True,
'level':'INFO',
},
},
}
# testing
TEST_RUNNER = 'django_nose.NoseTestSuiteRunner'
# external/photologue:
PHOTOLOGUE_DIR = "galleries"
# apps/custom_comments:
COMMENTS_APP = "custom_comments"
# apps/blogging:
FEED_LIMIT = 15