Assorted Django snippets