(Mostly) working with Django 1.7; probably still a bit of tidying up to do.