1👍
✅
If you not attaching id
, then write view as
def photo_upload(request, id=None):
OR
"{% url 'photo_upload' id %}" #id if you are attaching /id in url.
Your photo_upload
view needs parameter id
Source:stackexchange.com