0
0
mirror of https://github.com/django/django.git synced 2024-12-01 15:42:04 +01:00

Refs #32339 -- Added base form renderer to docs.

This commit is contained in:
Carlton Gibson 2022-04-21 14:32:52 +02:00
parent 58b27e0dbb
commit 832096478c

View File

@ -36,6 +36,20 @@ must implement a ``render(template_name, context, request=None)`` method. It
should return a rendered templates (as a string) or raise
:exc:`~django.template.TemplateDoesNotExist`.
.. class:: BaseRenderer
The base class for the built-in form renderers.
.. method:: get_template(template_name)
Subclasses must implement this method with the appropriate template
finding logic.
.. method:: render(template_name, context, request=None)
Renders the given template, or raises
:exc:`~django.template.TemplateDoesNotExist`.
.. _built-in-template-form-renderers:
Built-in-template form renderers