djangosnippets.org: Latest snippets tagged with 'permalink'https://djangosnippets.org/tags/permalink/2009-04-27T08:26:02.867297-05:00Decorator to modify reverse() to render SSL urls
2009-04-27T08:26:02.867297-05:00AndrewIngramhttps://djangosnippets.org/snippets/1467/<p>This snippet monkey-patches Django's reverse() method (use for generating URLs from vew functions and parameters) to allow certain areas of your site to automatically have URLs with the correct SSL domain in place.
</p>
<p>This saves you from having to use unnecessary redirects to guide users to an SSL-encrypted version of …</p>
Freely redistributable