[Fixed]-Form not Rendered in Django

1👍

your index should read like this, you need to pass the form to the template context.

def index(request):
 form = BForm()
 context = {
  'form': form,
 }
 return render(request, 'front/index.html', context)
👤Du D.

Leave a comment