first commit
[osm/LW-UI.git] / sf_t3d / context_processor.py
diff --git a/sf_t3d/context_processor.py b/sf_t3d/context_processor.py
new file mode 100644 (file)
index 0000000..d554515
--- /dev/null
@@ -0,0 +1,10 @@
+from django.conf import settings  # import the settings file
+
+
+def conf_constants(request):
+    # return the value you want as a dictionnary. you may add multiple values in there.
+    return {
+        'SITE_NAME': settings.SITE_NAME,
+        'SHORT_SITE_NAME': settings.SHORT_SITE_NAME,
+        'VERSION': settings.VERSION,
+    }
\ No newline at end of file