(form, template_name=None)
return tpl.render(template.Context({'form': form}))
Renders a ``django.forms.Form`` or
    ``form_utils.forms.BetterForm`` instance using a template.

    The template name(s) may be passed in as the argument to the
    filter (use commas to separate multiple template names for
    template selection).

    If not provided, the default template name is
    ``form_utils/form.html``.

    If the form object to be rendered is an instance of
    ``form_utils.forms.BetterForm`` or
    ``form_utils.forms.BetterModelForm``, the template
    ``form_utils/better_form.html`` will be used instead if present.
Renders a ``django.forms.Form`` or
    ``form_utils.forms.BetterForm`` instance using a template.
Renders a django . forms . Form or form_utils . forms . BetterForm instance using a template .
def render(form, template_name=None):
    """
    Renders a ``django.forms.Form`` or
    ``form_utils.forms.BetterForm`` instance using a template.

    The template name(s) may be passed in as the argument to the
    filter (use commas to separate multiple template names for
    template selection).

    If not provided, the default template name is
    ``form_utils/form.html``.

    If the form object to be rendered is an instance of
    ``form_utils.forms.BetterForm`` or
    ``form_utils.forms.BetterModelForm``, the template
    ``form_utils/better_form.html`` will be used instead if present.

    """
    default = 'form_utils/form.html'
    if isinstance(form, (BetterForm, BetterModelForm)):
        default = ','.join(['form_utils/better_form.html', default])
    tpl = select_template_from_string(template_name or default)

    return tpl.render(template.Context({'form': form}))
def render ( form , template_name = None ) : default = 'form_utils/form.html' if isinstance ( form , ( BetterForm , BetterModelForm ) ) : default = ',' . join ( [ 'form_utils/better_form.html' , default ] ) tpl = select_template_from_string ( template_name or default ) return tpl . render ( template . Context ( { 'form' : form } ) )