| Age | Commit message (Collapse) | Author |
|
Backport of 96f97691ad5e1483263cea3bb4e4021b4c8dcc41 from master
|
|
|
|
|
|
Thanks Akshesh Doshi for the initial patch and Tim Graham for the review
|
|
Thanks Carl Meyer, Claude Paroz, and Simon Charette for review.
|
|
Thanks to Tim for the review.
|
|
Thanks to Tim for the review.
|
|
Thanks to Tim Graham for the review.
|
|
trailing whitespace.
Thanks Jacek Bzdak for indepdently contributing a similar fix.
|
|
|
|
Moved the lookup in Field.swappable_setting to Apps, and added
an lru_cache to cache the results.
Refs #24743
Thanks Marten Kenbeek for the initial work on the patch. Thanks Aymeric
Augustin and Tim Graham for the review.
|
|
Thanks Carl Meyer for review.
|
|
Tests were using an undocumented keyword argument for easily overriding
script prefix while reversing. This is now changed into a test utility
which can be used as decorator or context manager.
|
|
|
|
Specifically in rendering shortcuts, template responses, and class-based
views that return template responses.
Also added a test for render_to_response(status=...) which was missing
from fdbfc980.
Thanks Tim and Carl for the review.
|
|
|
|
And removed Ignore*DeprecationWarningsMixin, now obsolete.
Thanks Berker Peksag and Tim Graham for the review.
|
|
|
|
comprehension
|
|
warnings from appearing in tests.
|
|
|
|
test.support.
StringIO import was adapted for compatibility with Python 2.
|
|
They can be replaced with override_settings and that makes the
corresponding tests much more obvious.
|
|
Reformatted the code of base.Loader according to modern standards.
Turned the test template loader into a regular locmem.Loader -- but
didn't document it.
Added a normal deprecation path for BaseLoader which is a public API.
Added an accelerated deprecation path for TestTemplateLoader which is
a private API.
|
|
That commit contained a mistake that resulted in the use_cached_loader
option of override_with_test_loader being ignored. As a consequence some
configurations weren't exercised any more by the test suite.
|
|
Thanks Carl Meyer for django-secure and for reviewing.
Thanks also to Zach Borboa, Erik Romijn, Collin Anderson, and
Jorge Carleitao for reviews.
|
|
|
|
the behavior.
|
|
Prevented unlimited memory consumption when running background tasks
with DEBUG=True.
Thanks Rob, Alex, Baptiste, and others.
|
|
- Template loader overriding is managed with contexts.
- The test loader is a class (function based loaders entered deprecation timeline
in 1.4).
- Template loader overrider that overrides with test loader added.
|
|
|
|
Thanks Anssi Kääriäinen for the idea and Simon Charette for the
review.
|
|
Thanks Piotr Kasprzyk for help with the patch.
|
|
Fixed #21688. Refs https://github.com/django/django/pull/1147.
|
|
|
|
test suite.
Thanks Aymeric for the suggestion.
|
|
This is the result of Christopher Medrela's 2013 Summer of Code project.
Thanks also to Preston Holmes, Tim Graham, Anssi Kääriäinen, Florian
Apolloner, and Alex Gaynor for review notes along the way.
Also: Fixes #8579, fixes #3055, fixes #19844.
|
|
Also renamed app_cache to apps and "app cache" to "app registry".
Deprecated AppCache.app_cache_ready() in favor of Apps.ready().
|
|
Previously, this would corrupt the settings, because __exit__ isn't
called when __enter__raises an exception.
|
|
|
|
* Introduced [un]set_installed_apps to handle changes to the
INSTALLED_APPS setting.
* Refactored [un]set_available_apps to share its implementation
with [un]set_installed_apps.
* Implemented a receiver to clear some app-related caches.
* Removed test_missing_app as it is basically impossible to reproduce
this situation with public methods of the new app cache.
|
|
Replaced the custom, untested memoize with a similar decorator from Python's
3.2 stdlib. Although some minor performance degradation (see ticket), it is
expected that in the long run lru_cache will outperform memoize once it is
implemented in C.
Thanks to EvilDMP for the report and Baptiste Mispelon for the idea of
replacing memoize with lru_cache.
|
|
|
|
#14170 -- Reset i18n cache when settings changed
|
|
|
|
|
|
many occurrences in the tests/ dir so it can't be removed from setup.cfg yet)
|
|
|
|
|
|
When both parent and child classes are decorated with override_settings,
child class settings should take precedence.
Thanks Sephi for the report and Marc Tamlyn for the review.
|