def _render_errors(field):
    """
    Render form errors in crispy-forms style.
    """
    template = '{0}/layout/field_errors.html'.format(appsettings.CRISPY_TEMPLATE_PACK)
    return render_to_string(template, {
        'field': field,
        'form_show_errors': True,
    })
def _render_errors ( field ) : template = '{0}/layout/field_errors.html' . format ( appsettings . CRISPY_TEMPLATE_PACK ) return render_to_string ( template , { 'field' : field , 'form_show_errors' : True , } )
Render form errors in crispy-forms style.