Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Fixed #22071 -- Added a warning regarding override_settings and alias…


Thanks EvilDMP for the suggestion.
  • Loading branch information...
commit e65c0ccac0741b793ba7be96f9dcc148bf26ca7d 1 parent e816198
@henkvos henkvos authored timgraham committed
Showing with 4 additions and 0 deletions.
  1. +4 −0 docs/topics/testing/tools.txt
4 docs/topics/testing/tools.txt
@@ -1181,6 +1181,10 @@ The decorator can also be applied to test case classes::
the session backend in a test that uses cached sessions and overrides
+ Finally, avoid aliasing your settings as module-level constants as
+ ``override_settings()`` won't work on such values since they are
+ only evaluated the first time the module is imported.
You can also simulate the absence of a setting by deleting it after settings
have been overridden, like this::

0 comments on commit e65c0cc

Please sign in to comment.
Something went wrong with that request. Please try again.