[Answered ]-Show initial value for FileField in django-template

2👍

You are using ModelForm then why not take advantage that to display.?

form = EditProfileForm(instance=your_user_profile_instance)
return render(request, 'test.html', {'form':form})

or

context["form"] = EditProfileForm(initial=data)

Leave a comment