Thursday, April 13, 2023

Re: Images are not showing up in the page

Yeah Ryan thanks for your noticing, I was literally looking back and forth for the solution and found it out.

Kind regards,
Sahan

On Thu, Apr 13, 2023 at 9:46 AM Ryan Nowakowski <ryan@fattuba.com> wrote:
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

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/8460BCFB-86AC-4F90-81AE-6A8D7D4EA9C0%40fattuba.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAO3SeexDQecCng9vv_Kvjr9jzv6-28pVb2B5_rnZi0Yta-D2Lg%40mail.gmail.com.

No comments:

Post a Comment