[Fixed]-Django basic form – read a variable from views.py

1👍

The only items with name=”counter” in your template are the + and – buttons. You don’t actually have a field containing the counter value itself, so there’s no way it can be submitted in the form.

Remove the “counter” names from those buttons, and instead of putting the counter value in a <p> element, put it in an <input name="counter">.

Leave a comment