projects
/
xnet
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
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
+++ b/
xnet/site/context_processors.py
@@ -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,
+ }