djangosnippets.org: Latest snippets posted by gfranxmanhttp://djangosnippets.org/users/gfranxman/2008-03-02T16:36:33.818876-06:00gfranxmanMultiple Delete in Admin
2008-03-02T16:36:33.818876-06:00gfranxmanhttp://djangosnippets.org/snippets/626/<p>This snippet demonstrates the use of the SpecialOps patch ( <a href="http://hackermojo.com/mt-static/archives/2008/02/django-special-ops.html">link here</a> )to the django 0.96 admin. Once you have the patch, adding actions like these is simple. </p>
<p>You can use the @admin_action decorator on model and manager methods to expose them inside the admin. For manager methods, the method …</p>
Freely redistributableMintCache
2007-04-04T23:54:41.787836-05:00gfranxmanhttp://djangosnippets.org/snippets/155/<p>MintCache is a caching engine for django that allows you to get by with stale data while you freshen your breath, so to speak.
</p>
<p>The purpose of this caching scheme is to avoid the dog-pile effect. Dog-piling is what normally happens when your data for the cache takes more time …</p>
Freely redistributableMemcache Status
2007-02-28T16:08:30.344661-06:00gfranxmanhttp://djangosnippets.org/snippets/54/<p>I use this script to keep track of the cache usage for various sites. It presently only supports memcached because that's all that I use, but leave a comment with patches for other systems and I'll add them.</p>
Freely redistributableLorem Ipsum - Random content for your mockups
2007-02-28T00:38:15.351375-06:00gfranxmanhttp://djangosnippets.org/snippets/46/<p>The loremipsum tag generates random content for use in mockups. It takes this content from Cicero's De finibus bonorum et malorum. By default you get a random number of paragraphs up to 6, but you can affect this behaviour by passing in parameters for quantity and units. Units can be …</p>
Freely redistributable