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:
parent
58b27e0dbb
commit
832096478c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user