Sunday, April 9, 2023

Re: Images are not showing up in the page

Hi,
 
{%  static %} is not required here because image is coming from model.

On Sun, Apr 9, 2023 at 2:46 PM Vishesh Mangla <manglavishesh64@gmail.com> wrote:
Where's {% static %}?

On Sun, 9 Apr, 2023, 23:45 Sahan Srinivas, <26sahan@gmail.com> wrote:
Hi Devs,

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


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

settings.py


urls.py
home.html: (I have give like this in html file)

views.py

Media Images:


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/CAO3SeezAm3Lbe8JGxoCrZ2DCd74p8gFsxzUUoLa5166t6Dm9Kg%40mail.gmail.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/CACaE8x6skod8u0k0RQb%2BhqJk%3DY1L52bAH4eF7-HxXvUGYkqJjg%40mail.gmail.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/CAO3SeeytqG05FA%3DuxsBUMZM_kdSBaKXDVL3GWMzT_OPz96QrYw%40mail.gmail.com.

No comments:

Post a Comment