OpenID delegation under Django and lighttpd
There’s been lots and lots and lots of buzz around OpenID in the last couple weeks, which makes me happy because OpenID is a pretty ...
Read full entry and comments
My site is smarter than I am
Looking through my stats today, I found an incoming link from a blog
written entirely in Chinese. Now, I don’t read Chinese (I know about
...
Read full entry and comments
Django tips: get the most out of generic views
Recently at work I had the chance to revisit an application I’d
written fairly early on in my tenure at World Online; I was still ...
Read full entry and comments
Django tips: auto-populated fields
One of these days I’m going to run out of frequently-asked Django
questions to answer. But today isn’t that day, so let’s look at one ...
Read full entry and comments
Django and NIH
Just so you know, Django is a smug, arrogant framework that doesn’t
play nice with others. The developers are smug, arrogant assholes who
don’t care ...
Read full entry and comments
How I got here
I’m not a formally-trained programmer. I wasn’t a computer science
major in college (my degree is in philosophy), and my first job after
graduation didn’t ...
Read full entry and comments
Heads up
If you’re a regular reader of my blog it will be purely remedial reading, but an article I wrote about Django is up at ...
Read full entry and comments
Django tips: laying out an application
Continuing the theme of dealing with common questions from the Django mailing lists and IRC channel, today we’ll look at how to ...
Read full entry and comments
Django tips: documentation and resources
Django’s official documentation often draws praise for being well above average for an open-source project, but it’s far from being the only source of ...
Read full entry and comments
Django tips: user registration
One of the most common and, generally, most successful models for
letting people sign up for user accounts requires the user to go
through some ...
Read full entry and comments
Friday fun
It’s the end of the week and, while I’ve got plenty of things I could write about, I’m sort of tired and burned out. So ...
Read full entry and comments
The best of all worlds
Every once in a while, someone will complain on the Django users mailing list that they feel our ORM doesn’t offer all the ...
Read full entry and comments
Django tips: using properties on models and managers
While working on a little side project this week, I ran into a couple of very common use cases that often result in a lot ...
Read full entry and comments
Django tips: A simple AJAX example, part 2
Last time around we looked at how to write a simple view which processes a form and either returns errors or returns success, ...
Read full entry and comments
Django tips: A simple AJAX example, part 1
One thing that’s come up over and over again in the Django IRC channel and on the mailing lists is the need ...
Read full entry and comments
Helpers, scaffolding, tradeoffs and other stuff
In one of the very, very few coherent things I’ve seen him say in comments posted here and elsewhere, one Lucas Carlson brought up ...
Read full entry and comments
Django tips: Hacking FreeComment
Django’s bundled comments application (found in django.contrib.comments) is incredibly useful; it gives you a nice, out-of-the-box system for adding comments to any site. But, if ...
Read full entry and comments
JavaScript, ORM and “hiding SQL”
So my little rant on AJAX support in Django apparently touched a nerve with a couple people; that means it’s time to write more ...
Read full entry and comments
Django tips: scaling an application
In today’s ripped-from-the-mailing-list Django tip, we’ll be looking
at a common scaling pattern: an application which starts out with one
user, then has to gain ...
Read full entry and comments
Django and AJAX
One hot topic that keeps coming up over and over again on the Django mailing lists and in IRC has to do ...
Read full entry and comments
Django tips: the difference between ‘blank’ and ‘null’
New users of Django, even people who have lots of experience writing
database-driven applications, often run into a seemingly simple
problem: how do you set ...
Read full entry and comments
Django tips: Template context processors
Last time around we looked at how to write an effective template tag, with the focus on writing a flexible template tag that would ...
Read full entry and comments
How Django processes a request
In a comment he left yesterday, Jonathan Snook posed an excellent challenge: document the chain of how Django processes a request, from start to ...
Read full entry and comments
Django tips: Write better template tags
Django‘s template tags are a great way to handle things that don’t always make sense being in a view. If you want to ...
Read full entry and comments
Django tips: extending the User model
One of Django‘s great strengths is its built-in user and authentication system; the bundled application django.contrib.auth includes models for users, user groups and permissions ...
Read full entry and comments
Templating languages redux
So, I thought I’d explained why templating languages are pretty useful things. Markup is, after all, just about the fastest and simplest way to, ...
Read full entry and comments
Why templating languages aren’t a bad idea
Before I get into any meaty details, a quick question. You have a
dynamic, database-driven web application and you’re ready to sit down
and bang ...
Read full entry and comments
Django, gzip and WSGI
One of the many things I like about Django is the range of available middleware you can use to do all sorts of ...
Read full entry and comments
|