Rate Limiting in Django via memcache by Simon Willison
Simon Willison has published a fantastic code snippet that provides rate limiting for Django applications using memcache as a storage mechanism to avoid continuous database writes. A very useful addition to a Django project if you're unable to do HTTP throttling at the HTTP level (eg via Apache or your hardware routers/load balances) (via Simon Willison)
http://github.com/simonw/ratelimitcache/tree/master