summaryrefslogtreecommitdiff
path: root/example_project
diff options
context:
space:
mode:
Diffstat (limited to 'example_project')
-rw-r--r--example_project/local_settings.py.sample3
-rw-r--r--example_project/settings.py6
2 files changed, 9 insertions, 0 deletions
diff --git a/example_project/local_settings.py.sample b/example_project/local_settings.py.sample
index f49963c84..555adb711 100644
--- a/example_project/local_settings.py.sample
+++ b/example_project/local_settings.py.sample
@@ -51,3 +51,6 @@ SRID = 27572
ENCODING = '' # specific encoding for CSV export - default to utf-8
SURFACE_UNIT = 'square-metre'
SURFACE_UNIT_LABEL = u'm²'
+
+# translation overload can consume resources for a low profile machine
+# USE_TRANSLATION_OVERLOAD = True
diff --git a/example_project/settings.py b/example_project/settings.py
index 65ca93395..b858c5907 100644
--- a/example_project/settings.py
+++ b/example_project/settings.py
@@ -170,6 +170,9 @@ INSTALLED_APPS = [
# 'debug_toolbar',
]
+USE_TRANSLATION_OVERLOAD = True
+TRANSLATION_OVERLOAD_DEBUG = False
+
MAIN_APP = ""
LOGFILE = ''
@@ -294,6 +297,9 @@ except ImportError as e:
except ImportError as e:
print('Unable to load local_settings.py:', e)
+if USE_TRANSLATION_OVERLOAD:
+ INSTALLED_APPS.insert(0, 'overload_translation')
+
if "SECRET_KEY" not in globals(): # explicit import from the root for celery
current_path = os.path.abspath(__file__)
current_dir_path = os.path.dirname(current_path).split(os.sep)[-1]