From 739c1c3780cdde3bc371702a6b946ab2d0787bcc Mon Sep 17 00:00:00 2001 From: Leif Johansson Date: Wed, 1 Jun 2011 22:29:36 +0200 Subject: absolute url for validation links --- src/meetingtools/extensions/templatetags/prefix.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/meetingtools/extensions') diff --git a/src/meetingtools/extensions/templatetags/prefix.py b/src/meetingtools/extensions/templatetags/prefix.py index 4defd38..32b8656 100644 --- a/src/meetingtools/extensions/templatetags/prefix.py +++ b/src/meetingtools/extensions/templatetags/prefix.py @@ -5,9 +5,14 @@ Created on Feb 9, 2011 ''' from django import template -from meetingtools.settings import PREFIX_URL +from meetingtools.settings import PREFIX_URL, BASE_URL register = template.Library() @register.simple_tag +def baseurl(): + return BASE_URL + + +@register.simple_tag def prefix(): return PREFIX_URL \ No newline at end of file -- cgit v1.1