Why not using ``override_settings`` ? 
https://docs.djangoproject.com/en/dev/topics/testing/overview/#django.test.utils.override_settings