[Answer]-Django crispy forms – VariableDoesNotExist

1👍

You never pass a form instance to the view’s renderer.

Very simply to at least see your form rendered…

def home(request):  
    example_form = ExampleForm()
    return render_to_response("index.html",
                              {"example_form": example_form},
                              context_instance=RequestContext(request))

You will want to look at the django docs to see how to handle data returned from the form and such, but that will let you see it rendered on the page.

Leave a comment