我试图显示图像,但每次图像都被破坏:
settings.py
MEDIA_ROOT = "media/"
models.py
image = models.ImageField(null=True, blank=True, upload_to='article_image/')
模板(presenter.html)
<img src="{{ art.image.path }}">
路径如下/home/mikemoix/IdeaProjects/vlad/media/article_image/aptitude_test1.gif
我该怎么办?
答案 0 :(得分:4)