summaryrefslogtreecommitdiff
path: root/meetingtools/extensions
diff options
context:
space:
mode:
authorLeif Johansson <leifj@sunet.se>2011-02-09 10:34:10 +0100
committerLeif Johansson <leifj@sunet.se>2011-02-09 10:34:10 +0100
commit23816211095cbc8bfde3313b3b1ccf4a43908420 (patch)
treec8682f9bb84a112aa4d31bc2fc61eb4d234a43da /meetingtools/extensions
parent618d783a82d112192665fa6be9df016ccd51e8b9 (diff)
prefix in templates -a
Diffstat (limited to 'meetingtools/extensions')
-rw-r--r--meetingtools/extensions/templatetags/prefix.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/meetingtools/extensions/templatetags/prefix.py b/meetingtools/extensions/templatetags/prefix.py
new file mode 100644
index 0000000..4defd38
--- /dev/null
+++ b/meetingtools/extensions/templatetags/prefix.py
@@ -0,0 +1,13 @@
+'''
+Created on Feb 9, 2011
+
+@author: leifj
+'''
+
+from django import template
+from meetingtools.settings import PREFIX_URL
+register = template.Library()
+
+@register.simple_tag
+def prefix():
+ return PREFIX_URL \ No newline at end of file