djangosnippets.org: Latest snippets tagged with 'absolute'http://djangosnippets.org/tags/absolute/2012-07-04T15:50:48.638153-05:00template filter to include protocol and domain in absolute urls
2012-07-04T15:50:48.638153-05:00czerhttp://djangosnippets.org/snippets/2783/<p>I created this template filter to be able to use get_absolute_url in an email template.</p>
<p>Save the code into /templatetags/navigation.py</p>
<p>Use like this:</p>
<pre><code>{% load navigation %}
{{ instance.get_absolute_url|siteabsoluteurl:request }}
</code></pre>
Freely redistributableAbsolute URL Templatetag
2009-05-21T01:55:34.027890-05:00johnboxallhttp://djangosnippets.org/snippets/1518/<p>The {% url %} templatetag is awesome sometimes it is useful to get the full blown URL with the domain name - for instance for links in emails. The <strong>{% absurl %}</strong> templatetag mirrors the behaviour of {% url %} but inserts absolute URLs with the domain of the current …</p>
Freely redistributable