from copy import deepcopy TEMPLATES_copy = deepcopy(settings.TEMPLATES) TEMPLATES_copy[0]['OPTIONS']['debug'] = True with override_settings( TEMPLATES=TEMPLATES_copy ):