Answer the question
In order to leave comments, you need to log in
How to get url for uploaded image in django?
Sayzh.
I tried this: {{ profile.avatar.url }}, outputs:
home/***/projects/web_env/***/uploads/avatar/2017/02/21/1178208_u4zA9ru.jpg
how to solve this without crutches?
Answer the question
In order to leave comments, you need to log in
check MEDIA_ROOT and MEDIA_URL, there is a suspicion that they mixed it up. Without crutches, this is most likely some kind of templatetags thread of type static
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question