summaryrefslogtreecommitdiff
path: root/example_project
diff options
context:
space:
mode:
Diffstat (limited to 'example_project')
-rw-r--r--example_project/settings.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/example_project/settings.py b/example_project/settings.py
index db9a3ee64..a27046f5f 100644
--- a/example_project/settings.py
+++ b/example_project/settings.py
@@ -4,6 +4,7 @@
import os
import sys
+from importlib import import_module
DEBUG = False
DEBUG_TOOLBAR = False
@@ -265,8 +266,16 @@ try:
except ImportError, e:
print('Unable to load local_settings.py:', e)
+TABLE_COLS = {} # allow to overload table col settings on extra module
+COL_LABELS = {}
+
if MAIN_APP:
INSTALLED_APPS.insert(INSTALLED_APPS.index("ishtar_common"), MAIN_APP)
+ extra_module = import_module(MAIN_APP + '.extra_settings')
+ if hasattr(extra_module, 'TABLE_COLS'):
+ TABLE_COLS = extra_module.TABLE_COLS
+ if hasattr(extra_module, 'COL_LABELS'):
+ TABLE_COLS = extra_module.COL_LABELS
TESTING = sys.argv[1:2] == ['test']