Entries published in September 2006

6 entries published in this month. See also: all entries published in 2006, latest entries.

Dear John

Published September 20, 2006

I don’t really know where I should begin, John. Maybe I could start with your unnecessary brutality over on Jeff’s blog. Maybe I could start with the rather nasty screed you left for me today. There are other things you’ve said that I could dig up and go through, but that’s not really where I should begin.

So let me start with my to-do list. There are about fifty things on it right now; in fact, there are pretty much always about fifty things on my ...

Read full entry and comments

Django tips: laying out an application

Published September 10, 2006

Continuing the theme of dealing with common questions from the Django mailing lists and IRC channel, today we’ll look at how to organize the various bits of a Django-based project or application.

Projects versus applications

This is really more of a separate (though related) question, but understanding the distinction Django draws between a “project” and an “application” is a big part of good code layout. Roughly speaking, this is what the two terms mean:

Read full entry and comments

Django tips: documentation and resources

Published September 4, 2006

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 useful information for a developer using the framework. Also, articles and tutorials specific to Django aren’t the only useful documentation out there; the Python language in general tends to have tons of great resources. So let’s take a look at some resources you might not know about but should.

Python in general

For someone who’s new to programming in general, or ...

Read full entry and comments

Tool Wars

Published September 3, 2006

A long time ago, in a land far away, there lived people who were called “carpenters”, and their jobs consisted, in part, of the following tasks:

Now, the last one was particularly problematic, because it usually involved pounding a small metal connector — called a “nail” — through one of the pieces of wood and into another. Many carpenters working in small shops had to ...

Read full entry and comments

Django tips: user registration

Published September 2, 2006

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 form of “activation”; usually it looks something like this:

  1. User fills out a form with a username, password and email address.
  2. User gets an email with a “confirmation link” which must be clicked to activate the account.
  3. User clicks the link and the account becomes active; then they log in normally.

So let’s look at how to do this with Django.

Also, before we ...

Read full entry and comments

Friday fun

Published September 1, 2006

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 let’s just look at a couple things that went on this week.

Django performance with foreign keys

There’s been a bit of a to-do the last few days over a supposed performance problem in Django. I have a hard time classifying it as a “bug”, though — the whole thing centers around the fact that, to generate an HTML select box ...

Read full entry and comments

ponybadge