Skip to content Skip to sidebar Skip to footer

Image Not Displaying In Django Getting 404 Error

I followed official django documentation for image field.I am able to store the image in the database but when I try to display it in browser I am getting 404 error. My sett

Solution 1:

In urls.py, I am noticing it has to be:

static(settings.STATIC_URL,document_root=settings.STATIC_ROOT) 

static(settings.MEDIA_URL,document_root=settings.MEDIA_ROOT)

Post a Comment for "Image Not Displaying In Django Getting 404 Error"