Note: ​Django snippets has plenty of code 'snippets' which do all sorts of useful things too.