Skip to main content

get_default_renderer

Instantiates and returns the default form renderer class specified in the project settings using the FORM_RENDERER configuration.

def get_default_renderer() - > BaseRenderer

Instantiates and returns the default form renderer class specified in the Django settings. This function is cached to ensure the renderer is only initialized once per process.

Returns

TypeDescription
BaseRendererAn instance of the renderer class defined by the FORM_RENDERER setting, used to control how forms and widgets are rendered into HTML.