djangosnippets.org: Latest snippets tagged with 'cycle'http://djangosnippets.org/tags/cycle/2013-01-16T10:35:42.794855-06:00Django cycle tag that doesn't continue where it left off
2013-01-16T10:35:42.794855-06:00wilfredhttp://djangosnippets.org/snippets/2879/<p>This tag is equivalent to {% cycle %} but resets when we exit the
containing loop.</p>
<p>See Django ticket "Cycle tag should reset after it steps out of scope"
<a href="https://code.djangoproject.com/ticket/5908">https://code.djangoproject.com/ticket/5908</a></p>
<p>This code is a lightly modified version of Simon Litchfield's
attachment on that ticket.</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