1👍
✅
Class-based views that inherit from the FormMixin
[Django-doc] like a FormView
, CreateView
, UpdateView
and DeleteView
pass the form object to the template as form
, not , so you render this as:Form
{{ form.as_p }}
Note: While not necessary, usually URLs are written in kebab case, so:
path('assessment-scores/<int:pk>/', assessmentEntry.as_view(), name='assessmentScores')
Source:stackexchange.com