summaryrefslogtreecommitdiff
path: root/django/template/loaders/cached.py
AgeCommit message (Collapse)Author
2022-02-07Refs #33476 -- Reformatted code with Black.django-bot
2020-11-05Refs #25791 -- Added get_dirs() method to cached template loader.Tom Forbes
2019-01-18Removed template_cache attribute from cached template loader.Tom Forbes
Unused since 5d8da093a974f41e08573bbe0d32d5ffeaadd0ad.
2019-01-18Fixed #30107 -- Removed unused dirs variable from cache template loader keys.Tim Graham
Unused since 5d8da093a974f41e08573bbe0d32d5ffeaadd0ad.
2018-02-10Refs #27795 -- Removed force_bytes() usage in django/template/loaders/cached.py.Jon Dufresne
2017-05-27Replaced some map() and filter() calls with generators.Tom
2017-02-23Refs #23919 -- Used yield from.Vytis Banaitis
2017-02-07Refs #27795 -- Removed force_text from the template layerClaude Paroz
Thanks Tim Graham for the review.
2017-01-25Refs #23919 -- Replaced super(ClassName, self) with super().chillaranand
2017-01-17Refs #15053 -- Removed support for non-recursive template loading.Tim Graham
Per deprecation timeline.
2016-05-10Fixed #26603 -- Forced lazy template names to text when computing cache key.Simon Charette
Refs #26536. Thanks Sylvain Fankhauser for the very detailed report.
2016-04-24Fixed #26536 -- Preserved leading dashes of the cached template loader keys.Simon Charette
Thanks Anders Roos for the report.
2016-03-16Fixed #26306 -- Fixed memory leak in cached template loader.Alex Hill
2016-02-26Fixed #26280 -- Fixed cached template loader crash when loading nonexistent ↵Ivan Tsouvarev
template.
2015-06-24Renamed RemovedInDjangoXYWarnings for new roadmap.Tim Graham
Forwardport of ae1d663b7913f6da233c55409c4973248372d302 from stable/1.8.x plus more.
2015-06-15Fixed #24979 -- Removed usage of inspect.getargspec().Tim Graham
2015-05-06Moved engine-related exceptions to django.template.exceptions.Preston Timmons
With the introduction of multiple template engines these exceptions are no longer DTL-specific. It makes more sense for them to be moved out of DTL-related modules.
2015-04-22Fixed #15053 -- Enabled recursive template loading.Preston Timmons
2015-02-06Sorted imports with isort; refs #23860.Tim Graham
2015-02-04Fixed #24235 -- Removed is_usable attribute from template loaders.Preston Timmons
2014-12-28Removed extraneous arguments in Engine.from_string.Aymeric Augustin
This aligns the Django Template Engine API with the common template backend API.
2014-12-28Removed some uses of global APIs from django.template.loader.Aymeric Augustin
2014-11-23Moved make_origin into the Engine class.Aymeric Augustin
2014-11-23Moved template loaders management in Engine.Aymeric Augustin
Passed the engine instance to loaders. This is a prerequisite for looking up configuration on the engine instance instead of global settings. This is backwards incompatible for custom template loaders that override __init__. However the documentation doesn't talk about __init__ and the way to pass arguments to custom template loaders isn't specified. I'm considering it a private API.
2014-11-23Removed unused API get_template_loaders.Aymeric Augustin
It was introduced in a recent refactoring so this isn't an issue. Then renamed _get_template_loaders to get_template_loaders.
2014-11-16Used get_template_loaders in the cached loader.Aymeric Augustin
This ensures that enabling the cached loader doesn't change behavior. (Before this commit, it did when the list contained unusable loaders.)
2014-11-16Refactored getting the list of template loaders.Aymeric Augustin
This provides the opportunity to move utility functions specific to the Django Template Language outside of django.template.loader.
2014-11-16Moved all template loaders under django.template.loaders.Aymeric Augustin
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.
2013-11-22Fixed #21460 -- Reenabled proper template precedence in find_templatePablo Martín
Refs #20806. Thanks Unai Zalakain for the review.
2013-11-02Fixed the remaining E302 violations int eh django packageAlex Gaynor
2013-08-26Added further fixes, tests for #19949/f33db5a09a.Ramiro Morales
Thanks Susan Tan. Refs #19949.
2013-08-24Fixed 19949 -- Cached template loader now caches TemplateDoesNotExistSusanTan
Thanks @timgraham and @jdunck for the code reviews and Kronuz for bug report and initial patch.
2013-07-30Fixed #20806 -- Cached loader caches find_templateGavin Wahl
The cached template loader should cache find_template in addition to load_template.
2013-03-17Fixed #19510 -- Race condition in template loading.Aymeric Augustin
Thanks Kronuz and regebro.
2013-02-27[py3] Always fed hashlib with bytes.Łukasz Langa
2011-12-30Fixed #17303 -- Ensured the list of template loaders is fully loaded before ↵Aymeric Augustin
it is cached. Thanks andrey DOT gtx AT gmail DOT com for the report and patch, and Anssi Kääriäinen for the review. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17295 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-07-13Fixed #16225 -- Removed unused imports. Many thanks to Aymeric Augustin for ↵Jannis Leidel
the work on the patch and Alex for reviewing. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16539 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-03-28Removed a bunch more Python 2.4 workarounds now that we don't support that ↵Adrian Holovaty
version. Refs #15702 -- thanks to jonash for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15927 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-27Fixed #12248 -- Refactored django.template to get code out of __init__.py, ↵Russell Keith-Magee
to help with avoiding circular import dependencies. Thanks to Tom Tobin for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14722 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-05-21Refs #13573 -- Modified the key technique added in r13295 to be more robust ↵Russell Keith-Magee
against potential key collisions while keeping key names human-readable. Thanks to Alex for being finicky. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13299 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-05-21Fixed #13573 -- Corrected problem with template caching when template ↵Russell Keith-Magee
directories are provided. Thanks to lamby for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13295 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-03-16Fixed #12787: Correctly identify the template that does not exist when a ↵Karen Tracey
template being extended includes another template that does not exist. Thanks to trigeek38 for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12792 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-03-01Fixed #12992: Adjusted the new template loader code so that the templateKaren Tracey
file name is correctly reported on the debug page when a template syntax error is raised. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12643 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-01-10Changed a whole bunch of places to raise exception instances instead of ↵Adrian Holovaty
old-style raising exception classes plus a comma. Good for the future Python 3 conversion git-svn-id: http://code.djangoproject.com/svn/django/trunk@12180 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-12-14Fixed #6262 -- Added a cached template loader, and modified existing ↵Russell Keith-Magee
template loaders and tag to be cacheable. Thanks to Mike Malone for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@11862 bcc190cf-cafb-0310-a4f2-bffc1f526a37