Login

All snippets written in Python

Title Author Tags Publication date Rating
Circular reference with Django ORM and Postgres without breaking NOT NULL FK constraints pstiasny django orm postgres March 26, 2015, 7:59 a.m. +0
Download an image using requests, resize it using PIL, and save it to a model ImageField. stewx image pil imagefield March 24, 2015, 7:31 p.m. +0
Geraldo Reports Currency class update for DecimalObjectValue alaska2008 django Geraldoreports March 19, 2015, 3:01 p.m. +1
Allow multiple field sorting in a single admin table column matiascelasco ModelAdmin admin_order_field multifiled sorting March 19, 2015, 8:32 a.m. +0
Testing (and mocking) http requests to APIs etc. monikasulik http testing requests mock March 9, 2015, 10:07 a.m. +0
LocaleMiddleware without browser language discovery ivellios middleware i18n locale Feb. 26, 2015, 2:20 p.m. +0
Seeded Randomized Querysets w/ Pagination Mixin ScottBarkman django session pagination random postgres mixin postgresql cbv seeded Feb. 25, 2015, 3:51 p.m. +1
Load dynamically loaded form javascript assets using dajax PhilipGarnero ajax javascript forms script dynamically-loaded-form form-assets dajax Feb. 22, 2015, 9:31 p.m. +0
Testing email sending monikasulik email testing Feb. 19, 2015, 5:07 a.m. +0
Decorator @not_login_required florent1933 decorator Feb. 12, 2015, 5 a.m. +1
Deferrable function cache decorator bradbeattie cache memoize django-rq redis Feb. 10, 2015, 4:37 p.m. +0
get_querystring template tag skam template templatetag querystring Feb. 9, 2015, 9:18 a.m. +0
django-constance generic view skam django-constance Feb. 9, 2015, 9:13 a.m. +0
Django Template - obfuscate a javascript string oriadam obfuscation Feb. 8, 2015, 11 a.m. +0
Image compression and conversion to JPG format before uploading the file monikkinom django image upload imagefield compression Jan. 26, 2015, 9:57 a.m. +1
Image compression and conversion to JPG format before uploading the file monikkinom django image upload imagefield compression Jan. 26, 2015, 9:46 a.m. +0
django form template with bootstrap youyongsong template form Jan. 25, 2015, 6:42 a.m. +1
Basic Auth Middleware for Python 3.4 ltwonder Jan. 22, 2015, 1:04 a.m. +0
Decorate class-based views with regular decorators jeffheard Jan. 1, 2015, 12:27 p.m. +0
templatetag faruk Dec. 27, 2014, 7:41 a.m. +0

   Next 20 >

2755 snippets posted so far.