About •  Books •  Apps •  Jobs •   Feeds •  Twitter
Login

Blog

This is a blog about this site and about Django.

Adding Javascript to contrib.admin inline fields

This recipe follows on from the last by adding Javascript to the inline fields of a model in the contrib.admin.

Caching and signals

Adding in cached objects on signals

Class based views

We discussed these at a recent Vancouver Django (May 2009) meetup and it was also a pattern I used on a recent project.

Content mirror and this site

How this site is configured and some more details on content mirror.

Django at PyCon

A wrap up of the happenings at PyCon

Django, Malnutrition, SMS and Kenya

How I ended up doing one of most interesting and important projects I've been involved with.

djapp.org

Another site listing django plugins

Faster or lazier pagination

Or how to avoid slow counts in Postgres

Features of a good Django plugin

Well, my opinion on them anyway.

First things to do on a Django project...

Call them best practices if you like, but here's the things I do when starting a new Django project.

Forms, forms, forms

Some questions answered about Django forms.

How Django plugins should be written

Well, my opinion on them anyway.

Javascript inline forms outside of contrib.admin

This recipe follows on from the last two and shows how to do the addition of inline fields to a model form, outside of contrib.admin.

Job board added

As promised the site now has a job board

Keeping user profiles in sync

Django provides a user profile as a way to extend a users information. This isn't created automatically for you however when you create a new User, but it is pretty simple to do this.

Read only fields in models

Supposing you have a field in your model and you don't want it to be changed, ever.

Serving multiple templates

Setting up inline forms in contrib.admin

This recipe covers how to set up inline forms in contrib admin and how to show foreign keys in those inline forms.

Signal vs overriding save

I'm a big fan of signals and wonder why people are so adverse to using them, preferring overriding save instead.

Site launched

Djangozen is now live in some sort of state, hopefully working.

The lack of magic in Django

...or why Rails and Zope 2 were too magical.

The power of Q

Q objects are a great tool in Django

Tuning the count method on a queryset

Some alternate ways to manipulate the pagination of Django query sets.

Turning off django signals

While I'm on the subject, how to turn off signals that you don't want on.

Useful Django API's

Two useful Django API's that I've found today.