use `@override_settings` or `mock` or even `with self.settings()` instead of manually playing with settings values in tests.