[Answered ]-Django is not displaying the image via /media/

2👍

Please set “document_root” as follows.

# Before.
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_URL)

# After. change "document_root" from "MEDIA_URL" to "MEDIA_ROOT"
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
👤tell k

0👍

Leave a comment