If you are running it on a live server make sure that media/photos folder is on public_html before you run load %satic% since the access to the domain will look into public_html folder to which Django does not run from.
I had previously encountered similar situation and the solution was to copy the folder into public_html instead I hope this answer the question. Regards Kiyavilo > On 9 Apr 2023, at 22:52, Sahan Srinivas <[email protected]> wrote: > > Yeah I gave that, actually that is also not the problem. Not sure what it is > > Kind Regards, > Sahan > > On Sun, Apr 9, 2023 at 3:44 PM Mir Junaid <[email protected] > <mailto:[email protected]>> wrote: > The command is {% load static%} > > On Sun, 9 Apr, 2023, 11:45 pm Sahan Srinivas, <[email protected] > <mailto:[email protected]>> 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 [email protected] > <mailto:[email protected]>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/CAO3SeezAm3Lbe8JGxoCrZ2DCd74p8gFsxzUUoLa5166t6Dm9Kg%40mail.gmail.com > > <https://groups.google.com/d/msgid/django-users/CAO3SeezAm3Lbe8JGxoCrZ2DCd74p8gFsxzUUoLa5166t6Dm9Kg%40mail.gmail.com?utm_medium=email&utm_source=footer>. > > -- > 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 [email protected] > <mailto:[email protected]>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/CAM%2BpT8z6w2Pjs6Hb_CxrOvoWSNhYe4SoL3RrTpkp7pHEXr2spg%40mail.gmail.com > > <https://groups.google.com/d/msgid/django-users/CAM%2BpT8z6w2Pjs6Hb_CxrOvoWSNhYe4SoL3RrTpkp7pHEXr2spg%40mail.gmail.com?utm_medium=email&utm_source=footer>. > > -- > 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 [email protected] > <mailto:[email protected]>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/CAO3SeeyoR-A%3DW7f0fC-NjLZcqyG-m4oMVoqonQ7r_XmAoaEEMg%40mail.gmail.com > > <https://groups.google.com/d/msgid/django-users/CAO3SeeyoR-A%3DW7f0fC-NjLZcqyG-m4oMVoqonQ7r_XmAoaEEMg%40mail.gmail.com?utm_medium=email&utm_source=footer>. -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/FD4AD59E-9002-46D9-97AB-41DB5B9E4E3D%40gmail.com.

