Refs #31026 -- Updated TemplatesSetting docs to refer to forms.
This commit is contained in:
parent
fde425051c
commit
78f062f63e
|
@ -79,17 +79,17 @@ widgets due to their usage of Django template tags.
|
||||||
|
|
||||||
.. class:: TemplatesSetting
|
.. class:: TemplatesSetting
|
||||||
|
|
||||||
This renderer gives you complete control of how widget templates are sourced.
|
This renderer gives you complete control of how form and widget templates are
|
||||||
It uses :func:`~django.template.loader.get_template` to find widget
|
sourced. It uses :func:`~django.template.loader.get_template` to find templates
|
||||||
templates based on what's configured in the :setting:`TEMPLATES` setting.
|
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
|
* ``'django.forms'`` in :setting:`INSTALLED_APPS` and at least one engine
|
||||||
with :setting:`APP_DIRS=True <TEMPLATES-APP_DIRS>`.
|
with :setting:`APP_DIRS=True <TEMPLATES-APP_DIRS>`.
|
||||||
|
|
||||||
* Adding the built-in widgets templates directory in :setting:`DIRS
|
* Adding the built-in templates directory in :setting:`DIRS <TEMPLATES-DIRS>`
|
||||||
<TEMPLATES-DIRS>` of one of your template engines. To generate that path::
|
of one of your template engines. To generate that path::
|
||||||
|
|
||||||
import django
|
import django
|
||||||
django.__path__[0] + '/forms/templates' # or '/forms/jinja2'
|
django.__path__[0] + '/forms/templates' # or '/forms/jinja2'
|
||||||
|
|
Loading…
Reference in New Issue