1👍
✅
You did not name your input on your template correctly. It should be:
<input type="email" size="50" name="verCode"> </input>
0👍
A better way would have been, if you had used loop to produce the fields in the template.
Check this out:
{% for field in form %}
<div>
<label>{{field.label_tag}}</label>
<div> {{field}} </div>
</div>
{% endfor %}
This will help you in preventing these errors in future and writing lot less code in template.
- NoReverseMatch in 'a href' HTML link
- Correct way to add fields to a model on django
- How to exclude some values in MultipleChoiceField Django
- Unexpected Circular Dependency in migration files
Source:stackexchange.com