djangosnippets.org: Latest snippets tagged with 'uri'https://djangosnippets.org/tags/uri/2011-08-18T17:48:44.159070-05:00filter for simplifying creating data URI´s
2011-08-18T17:48:44.159070-05:00visgeanhttps://djangosnippets.org/snippets/2516/<p>This filter will return data URI for given file, for more info go to:
<a href="http://en.wikipedia.org/wiki/Data_URI_scheme">wikipedia</a></p>
<p>Sample Usage:</p>
<p><code><img src="{{ "/home/visgean/index.png"|dataURI }}"></code></p>
<p>will be filtered into:</p>
<p><code><img src="data:image/png;base64,iVBORw0..."></code></p>
<p>This is good for small images. </p>
Freely redistributableDjango Uri Param Generator
2009-09-18T10:24:53.186353-05:00ioan1khttps://djangosnippets.org/snippets/1734/<p>This is a simple URI Querystring generator that can be used with Django for generating URI Querystring and preserving the current</p>
<p>Currently working to port into a template tag to allow
{% urlgen page|5 %} {% urlgen page 5 %} {% urlgen page,5 %}
OR
{% urlgen sort name display …</p>
Freely redistributableAbsolute URL Templatetag
2009-05-21T01:55:34.027890-05:00johnboxallhttps://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