django1/django/core/management
Loic Bistuer eb82fb0a9d Refactored color_style() and no_style() to improve testability. Refs #23663.
This includes the following improvements:

- The type of the style object is now called 'Style' rather than 'dummy'.
- The new make_style() function allows generating a Style object directly
  from a config string. Before the only way to get a style object was
  through the environ and it also required that the terminal supported
  colors which isn't necessarily the case when testing.
- The output of no_style() is now cached with @lru_cache.
- The output of no_style() now has the same set of attributes as the
  other Style objects. Previously it allowed anything to pass through
  with __getattr__.
2014-10-22 11:27:00 +07:00
..
commands Fixed #23583 -- More selectively ignored static/media roots 2014-10-21 20:18:21 +02:00
__init__.py Fixed #23685 -- Made call_command skip checks by default 2014-10-20 17:26:00 +02:00
base.py Fixed #23686 -- Tweak color output of the system check framework. 2014-10-22 11:27:00 +07:00
color.py Refactored color_style() and no_style() to improve testability. Refs #23663. 2014-10-22 11:27:00 +07:00
sql.py Fixed #18782 -- Prevented sql_flush to flush views 2014-09-23 20:13:31 +02:00
templates.py Converted remaining management commands to argparse 2014-06-14 13:43:44 +02:00
utils.py Replaced set([foo, ...]) by {foo, ...} literals. Refs PR 3282. 2014-09-29 00:01:38 +07:00