Login

Snippets by sleepycal

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

sleepycal has posted 13 snippets.