djangosnippets.org: Latest snippets tagged with 'media_url'http://djangosnippets.org/tags/media_url/2009-10-09T13:25:54.511785-05:00Load static media from secure (SSL) static server (Context Processor)
2009-10-09T13:25:54.511785-05:00ianreardonhttp://djangosnippets.org/snippets/1754/<p>If you request static files such as images, javascript or css using http rather than https, the browser will complain that your site is not secure.<br />
</p>
<p>This simple context processor will replace http:// with https:// in your MEDIA_URL if your static files are being included from an https page.</p>
<p>In …</p>
Freely redistributableCycling MEDIA_URL context processor
2008-12-04T17:38:38.740350-06:00girasquidhttp://djangosnippets.org/snippets/1232/<p>This is a context processor that will allow you to cycle the values of your MEDIA_URL context variable. It will cycle through the urls defined in settings.MEDIA_URLS, so that you can distribute your media url's between multiple servers.</p>
Freely redistributable