| author | Simon Descarpentries <sid@sopinspace.com> |
| Tue, 06 May 2014 13:52:01 +0200 | |
| changeset 651 | 9bbc657f6837 |
| parent 360 | bfaab8740995 |
| permissions | -rw-r--r-- |
| 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 |
||
|
651
9bbc657f6837
Replace DISABLE_TRACKING and TRACKING_HTML by a TRACKING_ID variable in configuration files
Simon Descarpentries <sid@sopinspace.com>
parents:
360
diff
changeset
|
16 |
# Piwik tracking ID |
|
9bbc657f6837
Replace DISABLE_TRACKING and TRACKING_HTML by a TRACKING_ID variable in configuration files
Simon Descarpentries <sid@sopinspace.com>
parents:
360
diff
changeset
|
17 |
TRACKING_ID = get_setting ('TRACKING_ID', 17) |
|
9bbc657f6837
Replace DISABLE_TRACKING and TRACKING_HTML by a TRACKING_ID variable in configuration files
Simon Descarpentries <sid@sopinspace.com>
parents:
360
diff
changeset
|
18 |
|
| 0 | 19 |
# button for new text version creation checked by default |
20 |
NEW_TEXT_VERSION_ON_EDIT = get_setting('NEW_TEXT_VERSION_ON_EDIT', True) |
|
21 |
||
22 |
# option to bypass all security checks |
|
23 |
NO_SECURITY = get_setting('NO_SECURITY', False) |
|
24 |
||
25 |
# should every contributor be registered to notifications automatically |
|
| 44 | 26 |
AUTO_CONTRIB_REGISTER = get_setting('AUTO_CONTRIB_REGISTER', False) |
27 |
||
28 |
# show email in user list |
|
| 228 | 29 |
SHOW_EMAILS_IN_ADMIN = get_setting('SHOW_EMAILS_IN_ADMIN', True) |
30 |
||
|
282
b5deb8e32219
add STORE_ACTIVITY_IP parameter to avoid storing ips for activities.
raph
parents:
228
diff
changeset
|
31 |
# Store IP (or not) in activity |
|
292
3442202aff1a
add parameter to display "decorated" creator (used with api calls)
raph
parents:
282
diff
changeset
|
32 |
STORE_ACTIVITY_IP = get_setting('STORE_ACTIVITY_IP', True) |
|
3442202aff1a
add parameter to display "decorated" creator (used with api calls)
raph
parents:
282
diff
changeset
|
33 |
|
|
3442202aff1a
add parameter to display "decorated" creator (used with api calls)
raph
parents:
282
diff
changeset
|
34 |
# Show 'decorated' users in comments (not structural creator id) |
|
360
bfaab8740995
Add abiword as an alternative to open office for conversions
gibus
parents:
292
diff
changeset
|
35 |
DECORATED_CREATORS = get_setting('DECORATED_CREATORS', False) |
|
bfaab8740995
Add abiword as an alternative to open office for conversions
gibus
parents:
292
diff
changeset
|
36 |
|
|
bfaab8740995
Add abiword as an alternative to open office for conversions
gibus
parents:
292
diff
changeset
|
37 |
# Use AbiWord for conversions |
|
bfaab8740995
Add abiword as an alternative to open office for conversions
gibus
parents:
292
diff
changeset
|
38 |
USE_ABI = get_setting('USE_ABI', False) |