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)
Source:stackexchange.com