|
0
|
1 |
# default cm settings |
|
|
2 |
|
|
|
3 |
from django.conf import settings |
|
|
4 |
|
|
|
5 |
def get_setting(setting_name, default=None): |
|
|
6 |
return getattr(settings, setting_name, default) |
|
|
7 |
|
|
|
8 |
VALID_EMAIL_FOR_PUBLISH = get_setting('VALID_EMAIL_FOR_PUBLISH', True) |
|
|
9 |
|
|
|
10 |
CM_EMAIL_SUBJECT_PREFIX = get_setting('CM_EMAIL_SUBJECT_PREFIX', '[comt] ') |
|
|
11 |
|
|
|
12 |
SITE_NAME = get_setting('SITE_NAME', 'comt ') |
|
|
13 |
|
|
|
14 |
DEFAULT_TIME_ZONE = get_setting('DEFAULT_TIME_ZONE','Europe/Paris') |
|
|
15 |
|
|
|
16 |
# button for new text version creation checked by default |
|
|
17 |
NEW_TEXT_VERSION_ON_EDIT = get_setting('NEW_TEXT_VERSION_ON_EDIT', True) |
|
|
18 |
|
|
|
19 |
# option to bypass all security checks |
|
|
20 |
NO_SECURITY = get_setting('NO_SECURITY', False) |
|
|
21 |
|
|
|
22 |
# should every contributor be registered to notifications automatically |
|
|
23 |
AUTO_CONTRIB_REGISTER = get_setting('AUTO_CONTRIB_REGISTER', False) |