XOR Media

Coding, Operations, Etc.

Django Model Validation On Save

In what is probably my biggest WTF with Django to date, it doesn't validate your models before saving them to the database. All of the necessary code exists and when a dev sets up her models she usually adds the relevant validations using EmailField, URLField, blank, null, unique, ..., but ...

(more)

Django Startup Signal

If you've spent some time with Django chances are you've run across its signals system. It is most commonly used to provide hooks in to the model setup and CRUD processes, but there are many other uses of the facility throughout the code including auth, db, and the ...

(more)
In code, tagged: django, signals, and python.