What's new in Django 1.7

A few weeks ago I gave a talk at AirConf 2014, a virtual conference organised by my friends at AirPair, about what's new in Django 1.7. Here's the video:

Update 2017: AirPair's videos seem to have vanished.

I kept the slides simple, on purpose, as most ...

View commentss.

more ...

Querysets aren't as lazy as you think

It should be reasonably well-known by now that querysets are lazy. That is, simply instantiating a queryset via a manager doesn't actually hit the database: that doesn't happen until the queryset is sliced or iterated. That's why the first field definition in the form below is safe ...

View commentss.

more ...







Temporary models in Django

Occasionally I need to create a temporary model within a Django application.

The most recent occasion for this was a one-off management command I was writing to import some data from a legacy system. The old database, for some reason, eschewed foreign keys in favour of char fields in a ...

View commentss.

more ...