mirror of
https://github.com/django/django.git
synced 2025-11-07 07:15:35 +00:00
Deprecated function-based loaders.
This commit is contained in:
@@ -1040,6 +1040,13 @@ class decorators. As a consequence, when overriding ``setUpClass()`` or
|
||||
``django.template.loaders.base.Loader``. If you've written a custom template
|
||||
loader that inherits ``BaseLoader``, you must inherit ``Loader`` instead.
|
||||
|
||||
Function-based template loaders
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
In addition to the documented class-based API for custom template loaders,
|
||||
Django still supported to some extent an earlier function-based API. This
|
||||
private API wasn't maintained or tested. Now it's formally deprecated.
|
||||
|
||||
``django.test.utils.TestTemplateLoader``
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
|
||||
Reference in New Issue
Block a user