Skip to content

Entries published on November 24, 2007

1 entry published on this date. See also: all entries published in November 2007, full archive.

User profiles

Django, as you hopefully already know, provides a way to store additional information related to a User via the mechanism of setting up a site-specific user profile model, and supports this directly via the get_profile() method on every User object.

By way of supporting this, back in version 0.2 of django-registration I added the ability to specify a callback function which, upon creating a new User, could also create a default site-specific profile for that User; at the time it seemed like a good way to handle the common situation of wanting to set up a profile for a user immediately upon signup. It has some limitations, though, primarily in that there’s no way to display a form for the user to fill in the initial values; instead, the callback function must be able to supply them on its own. Otherwise, you’d need to write your own …

Entry published November 24, 2007. Read full entry.