About a week ago I wrote about bringing some OOP into Django views and also posted some code for that. Since I use this in one project and want to move it also into some other project of mine, I’ve put this (together with some very simple pagination templatetag) into its own pluggable app and uploaded it github for everybody to slap me around for my coding style 😉
So if you want to use this code, simply install the app available here (or just import the django_zsutils.
Malcolm Tredinnick today merged his queryset-refactor branch into Django’s trunk, which means everyone using trunk will finally be able to for example using a more sane syntax for ordering resultsets (no table names anymore), update multiple objects with just one query, tell select_related() which fields it should follow (instead of every foreign key it comes across) and much much more.
Source article: My Second Poem Ever Watched Dead Poets Society about 3 times in the last 2 weeks, and was inspired in the ways of rhyme and rhythm. Here’s a poem, loosely based on one of my favorite quotes..”The more you know, the more you know you don’t know”.. Read full article at “Eric’s Thoughts”
A couple of days ago, a topic came up on the django-users mailinglist where someone asked how to avoid code repetition in views if the views mostly do the same (for instance do some processing on the request parameters or check a certain session variable etc.
Source article: Browser Login Discovery There are some really cool ideas floating around the interwebs these days, dealing with discovery of authentication. A lot of the talk is about integrating OpenID into the browser, but I don’t think it needs to be limited to that. People are working on good ways to auto-discover what the […]