djangosnippets.org: Latest snippets posted by cmcavoyhttps://djangosnippets.org/users/cmcavoy/2008-04-08T21:00:15.720519-05:00cmcavoyGoogle AppEngine Login Decorator
2008-04-08T21:00:15.720519-05:00cmcavoyhttps://djangosnippets.org/snippets/691/<p>A decorator for Django apps running Google AppEngine that requires a user to be authenticated.<br />
</p>
Freely redistributableTemplateTag to Split a List into Uniform Chunks
2008-03-23T18:27:06.440163-05:00cmcavoyhttps://djangosnippets.org/snippets/660/<p>Creates a template tag called "split_list" which can split a list into chunks of a given size. For instance, if you have a list 'some_data', and you want to put it into a table with three items per row, you could use this tag:
</p>
<p>{% split_list some_data as chunked_data 3 …</p>
Freely redistributableUse dateutil's relativedelta to sort an arbitrary list of Django objects by date
2007-03-01T11:37:57.153472-06:00cmcavoyhttps://djangosnippets.org/snippets/65/<p>Sometimes you'll have a list of ORM objects that aren't in a QuerySet, but you still want to sort them by date. For instance, you have a list of shows with a date_time attribute. Maybe you used a list comprehension to filter them...who knows. Regardless, you have a list (not …</p>
Freely redistributable