Thursday, April 13, 2023

Re: Images are not showing up in the page

Your images field is capitalized in models but lowercase in your template. Canonically it should be lowercase in your models.

On April 9, 2023 1:15:07 PM CDT, Sahan Srinivas <26sahan@gmail.com> wrote:
Hi Devs,

Images are not showing up in Django. Below is the screenshot

image.png
Below are the screenshots of Settings.py file and urls.py files

settings.py
image.png

urls.py
image.png
home.html: (I have give like this in html file)
image.png
views.py
image.png
Media Images:
image.png

I followed the documentation, stack overflow but, I am still not sure why images are not showing up. Can anyone help me out?

Kind regards,
Sahan

No comments:

Post a Comment