Accessing “Media” files in Django

前端 未结 7 2223
日久生厌
日久生厌 2020-12-02 03:54

I\'d like to love Django, but this business of static and media files in development environments is driving me nuts. Please rescue me from my stupidity.

I\'m on my

7条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-02 04:55

    Why have you made the MEDIA_ROOT setting blank? It needs to be the path to your media directory. Since, as you say, your media is in a subdirectory called media, you should put that in MEDIA_ROOT.

提交回复
热议问题