models.ImageField
has a property called url
which gives you the browsable path of your image.
You should be using artist.artist_image.url
instead of prepending MEDIA_URL
to your image name manually:
--
Make sure artist_image
is not None
, otherwise calling .url
throws an exception.