Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

[1.6.x] Fixed #22071 -- Added a warning regarding override_settings a…

…nd aliasing.

Thanks EvilDMP for the suggestion.

Backport of e65c0cc from master
  • Loading branch information...
commit 985d0865a3cfb5850f926dfd9742fa7a9ca88bdc 1 parent 3a5da7a
@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
@@ -1104,6 +1104,10 @@ The decorator can also be applied to test case classes::
the original ``LoginTestCase`` is still equally affected by the
+ 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 overriden, like this::

0 comments on commit 985d086

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