Login

Snippets by sleepycal

Title Tags Publication date Rating
Alternative to Class Based Views cbv based class views Sept. 12, 2012, 11:52 a.m. +0
Modified ZipFile() to support writedir() (with auto pyc/py selection) pyc zipfile auto writedir py Aug. 6, 2011, 4:04 p.m. +0
Storing IP address ModelField as Integer, without nasty hacks.. address int integer ip modelfield July 19, 2011, 7:15 a.m. -2
Updated version of StripWhitespaceMiddleware (v1.1) middleware strip whitespace May 31, 2011, 1:01 p.m. +0
Making multi node / multi vhost easier! March 7, 2011, 3:08 p.m. +0
Dev/staging/prod environment settings seperation production settings prod environment dev seperation staging Feb. 6, 2011, 1:44 p.m. +0
Faster pagination / model object seeking (10x faster infact :o) for larger datasets (500k +) model large dataset quicker big pagination faster object seeking optimized Nov. 28, 2010, 10:50 p.m. +1
ReportBug() with tons of debug in mail mail bug reportbug mail_admins report Oct. 1, 2010, 8:55 a.m. +0
ReportBug() (exception emails - ala django debug style) mail debug exception email bug reportbug mail_admins report Sept. 12, 2010, 9:45 a.m. +1
Django Row Level Locking (Prevents race conditions if used correctly) unlock django table atomic database locking operation operations mysql race condition lock May 26, 2010, 3:58 p.m. +0
datetime.time/datetime.datetime to Unix Epoch (with microsecond support) datetime microsecond date precision convert usec unix time epoch April 27, 2010, 5:40 a.m. +0
Extended db cache backend with 'filter() / LIKE' support (and now scheduled cache clean!) db backend cache like filter Jan. 7, 2010, 4:28 p.m. +0
FormWizard inside view with proper context handling and site templating support, without having to use urls.py wizard requestcontext views.py form urls.py formwizard views context Dec. 11, 2009, 7:22 a.m. +0

sleepycal has posted 13 snippets.