def render_crispy_form(form, helper=None, context=None):
from crispy_forms.templatetags.crispy_forms_tags import CrispyFormNode<EOL>if helper is not None:<EOL><INDENT>node = CrispyFormNode('<STR_LIT>', '<STR_LIT>')<EOL><DEDENT>else:<EOL><INDENT>node = CrispyFormNode('<STR_LIT>', None)<EOL><DEDENT>node_context = Context(context)<EOL>node_context.update({<EOL>'<STR_LIT>': form,<EOL>'<STR_LIT>': helper<EOL>})<EOL>return node.render(node_context)<EOL>
Renders a form and returns its HTML output.

This function wraps the template logic in a function easy to use in a Django view.