def render_crispy_form(form, helper=None, context=None):
 from crispy_forms.templatetags.crispy_forms_tags import CrispyFormNode
 if (helper is not None):
  node = CrispyFormNode(u'form', u'helper')
 else:
  node = CrispyFormNode(u'form', None)
 node_context = Context(context)
 node_context.update({u'form': form, u'helper': helper})
 return node.render(node_context)

def render_crispy_form ( form , helper = None , context = None ) : from crispy_forms . templatetags . crispy_forms_tags import CrispyFormNode if ( helper is not None ) : node = CrispyFormNode ( u'form' , u'helper' ) else : node = CrispyFormNode ( u'form' , None ) node_context = Context ( context ) node_context . update ( { u'form' : form , u'helper' : helper } ) return node . render ( node_context )
renders a form and returns its html output .