class MyForm(forms.Form):

    def as_foobar(self):
        return self._html_output(normal_row=
            '%(label)s %(field)s%(help_text)s', error_row='%s', row_ender
            ='', help_text_html=' %s', errors_on_separate_row=False)
Django: How to make a form with custom templating?