def init(self, *args, **options): unittest.installHandler() # do not override user-defined settings if not hasattr(settings, "COLD_TESTING"): settings.COLD_TESTING = True