Django : accessing uploaded picture from ImageField
问题 Hi I'm having a problem about referring to uploaded images in HTML. I'm using ImageField to save profile pictures : picture = models.ImageField(upload_to='stories/static/stories/profile_images/', blank=True) As you can see, It'll upload to <App folder>/static/stories/profile_images/ Then I refer it in HTML like this : <div class="profilepic" style="background-image: url('/{{ x.writer.picture }}');"></div> Which directs to ROOT/stories/static/stories/profile_images/.jpg Instead of ROOT/static