Skip to content Skip to sidebar Skip to footer

Django Imagefield Link Doesn't Show In Html Template

I can redirect to uploaded image through admin-panel but I can't load it on page. In HTML source code it looks like this: So here'

Solution 1:

First thing to do is check the HTML generated by your code.

I don't think you need the {{ MEDIA_URL }} as profile.avatar.url should include the full url if you have your media settings correct.

<img src="{{ profile.avatar.url }}" height = "200"with = "200" />

Post a Comment for "Django Imagefield Link Doesn't Show In Html Template"