diff options
| author | David Smith <smithdc@gmail.com> | 2021-12-21 22:01:21 +0000 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2021-12-22 08:03:47 +0100 |
| commit | 78f062f63e7dea09c219fd1310d43950817f4c78 (patch) | |
| tree | 11695d90193e84648881ebfa7d97121c4dbb154d /docs | |
| parent | fde425051c31b240e8eca48a8eb54daa6d372c9f (diff) | |
Refs #31026 -- Updated TemplatesSetting docs to refer to forms.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/forms/renderers.txt | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/docs/ref/forms/renderers.txt b/docs/ref/forms/renderers.txt index 77ee33d662..9047e2343f 100644 --- a/docs/ref/forms/renderers.txt +++ b/docs/ref/forms/renderers.txt @@ -79,17 +79,17 @@ widgets due to their usage of Django template tags. .. class:: TemplatesSetting -This renderer gives you complete control of how widget templates are sourced. -It uses :func:`~django.template.loader.get_template` to find widget -templates based on what's configured in the :setting:`TEMPLATES` setting. +This renderer gives you complete control of how form and widget templates are +sourced. It uses :func:`~django.template.loader.get_template` to find templates +based on what's configured in the :setting:`TEMPLATES` setting. -Using this renderer along with the built-in widget templates requires either: +Using this renderer along with the built-in templates requires either: * ``'django.forms'`` in :setting:`INSTALLED_APPS` and at least one engine with :setting:`APP_DIRS=True <TEMPLATES-APP_DIRS>`. -* Adding the built-in widgets templates directory in :setting:`DIRS - <TEMPLATES-DIRS>` of one of your template engines. To generate that path:: +* Adding the built-in templates directory in :setting:`DIRS <TEMPLATES-DIRS>` + of one of your template engines. To generate that path:: import django django.__path__[0] + '/forms/templates' # or '/forms/jinja2' |
