This way of tweaking settings is quite nasty but `override_settings` doesn't appear until Django>=1.4.