MCPcopy
hub / github.com/django/django / settings

Method settings

django/test/testcases.py:394–399  ·  view source on GitHub ↗

A context manager that temporarily sets a setting and reverts to the original value when exiting the context.

(self, **kwargs)

Source from the content-addressed store, hash-verified

392 pass
393
394 def settings(self, **kwargs):
395 """
396 A context manager that temporarily sets a setting and reverts to the
397 original value when exiting the context.
398 """
399 return override_settings(**kwargs)
400
401 def modify_settings(self, **kwargs):
402 """

Calls 1

override_settingsClass · 0.90

Tested by

no test coverage detected