Add contact email setting
[xnet] / xnet / site / context_processors.py
diff --git a/xnet/site/context_processors.py b/xnet/site/context_processors.py
new file mode 100644 (file)
index 0000000..fbee4e8
--- /dev/null
@@ -0,0 +1,9 @@
+# -*- coding: utf-8 -*-
+from django.conf import settings
+
+
+def public_settings(request):
+    """Returns some public settings as context variables."""
+    return {
+        'contact_email': settings.CONTACT_EMAIL,
+    }