djangosnippets.org: Latest snippets tagged with 'href'https://djangosnippets.org/tags/href/2023-04-28T08:59:04.718136-05:00Help text hyperlinks
2023-04-28T08:59:04.718136-05:00sa2812https://djangosnippets.org/snippets/10948/<p>Sometimes a plain-text help-text isn't sufficient, and it's handy to be able to add links to pages, documentation or external websites.</p>
<p>This javascript snippet can be added to your page, in combination with adding a class to your help text in your template. This assumes you're using jQuery on your …</p>
Freely redistributableSSL / HTTPS Middleware for Redirection and href Rewriting
2010-04-27T18:39:18.203132-05:00DrMeershttps://djangosnippets.org/snippets/1999/<p>See docstrings for details. To use, add to <code>MIDDLEWARE_CLASSES</code> in <code>settings.py</code>, and in your <code>views.py</code>:
</p>
<ol>
<li>
<code>from path.to.this.middleware import secure</code>
</li>
<li>
Decorate SSL views with <code>@secure</code>
</li>
</ol>
Freely redistributable