colab_settings.py
1.06 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
## Set to false in production
DEBUG = True
TEMPLATE_DEBUG = False
## System admins
ADMINS = [['John Foo', 'john@example.com'], ['Mary Bar', 'mary@example.com']]
MANAGERS = ADMINS
COLAB_FROM_ADDRESS = '"Colab" <noreply@example.com>'
SERVER_EMAIL = '"Colab" <noreply@example.com>'
EMAIL_HOST = 'localhost'
EMAIL_PORT = 25
EMAIL_SUBJECT_PREFIX = '[colab]'
SECRET_KEY = 'not-a-secret'
ALLOWED_HOSTS = [
'localhost',
# 'example.com',
# 'example.org',
# 'example.net',
]
### Uncomment to enable social networks fields profile
SOCIAL_NETWORK_ENABLED = True
## Disable indexing
ROBOTS_NOINDEX = True
LOGGING = {
'version': 1,
'handlers': {
'null': {
'level': 'DEBUG',
'class': 'logging.NullHandler',
},
},
'loggers': {
'colab.mailman': {
'handlers': ['null'],
'propagate': False,
},
'haystack': {
'handlers': ['null'],
'propagate': False,
},
},
}
STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.StaticFilesStorage'