I just had a situation where I was trying to filter the queryset for a ModelMultipleChoiceField based on the currently logged-on user. I was going crazy trawling through the Django docs and eventually Google. It seemed like something which should be so simple, but there was no obvious way to do it. Eventually I found the answer, and it IS simple!
Read More →Author: Wayne Koorts
Language in the New Millennium
One of my passions has always been the articulate expression of oneself through language. We have this wonderful, rich language we call English and there is great joy to be found in learning to use it effectively. The point of this post isn’t to rant about the degradation of the language or our frequent abuse of it – I’ve covered that already – instead I’d like to talk about different ways of using the language in different contexts, and that I believe it doesn’t make sense to enforce strict, blanket rules across the board.
Why I Love Django
I’ve used Django for a few small projects in the last year and have absolutely fallen in love with it. While I always insist that I’m not a language or framework zealot I will quite happily and unashamedly push the Python / Django team wherever possible. Here are some of the reasons why.
CSS auto reload with Django templates
Have you ever been in the situation where you’ve updated your CSS file but users’ web browsers haven’t automatically loaded the new one? The reason is because many web browsers cache the stylesheet for faster future reloading. Obviously you don’t want to have to get your users to Ctrl-F5 every time you update your stylesheet so here’s a little tip for making this automatic in your Django templates.
Read More →SourceForge drops IE 6 support
SourceForge has changed its appearance more often in the past 6 months than Joan Rivers’ face. Not in small ways either. I host Tubecaster on SourceForge and recently it seemed that every time I logged into the site they had completely re-themed.