2👍
✅
This is the line the error is
<p><a href="{% url '/' %}">Return to home</a></p>
Change it to
<p><a href="{% url 'name of the route' %}">Return to home</a></p>
And in your forms to
class UploadFile(forms.ModelForm)
class Meta:
model=UploadFiles
fields ='__all__'
Source:stackexchange.com