Re: Images are not showing up in the page

2023-04-09 Thread Kiyavilo Msekwa
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 <26sa...@gmail.com> 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  > wrote:
> The command is {% load static%}
> 
> On Sun, 9 Apr, 2023, 11:45 pm Sahan Srinivas, <26sa...@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+unsubscr...@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+unsubscr...@googlegroups.com 
> .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/django-users/CAM%2BpT8z6w2Pjs6Hb_CxrOvoWSNhYe4SoL3RrTpkp7pHEXr2spg%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+unsubscr...@googlegroups.com 
> .
> 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
>  
> .

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/FD4AD59E-9002-46D9-97AB-41DB5B9E4E3D%40gmail.com.


Re: Reply: Re: Hosting django with Namecheap

2022-11-09 Thread Kiyavilo Msekwa
The static files in ur Django project should reflect to public_html/static 
files 


Sent from my iPhone

> On 9 Nov 2022, at 09:27, Namanya Daniel  wrote:
> 
> Thanks Jeff, 
> 
> i re-uploaded the website and it worked but now i have an issue with static 
> files.
> 
> i've static_url= "/static/"
> static_root ="/home/username/url/static"
> i ran collectstatic 
> 
> in my templates,
> 
> i  loaded static
> 
> and set src = folder/image.jpg
> 
> and these images are there in that folder... what could be the issue
> 
>> On Tuesday, November 8, 2022 at 11:34:18 AM UTC-8 jeffkin...@gmail.com wrote:
>> Do you have root access oba you are just using cpanel. I do think you will 
>> be able to succeed with cpanel, you need VSP.
>> 
>>> On Tue, Nov 8, 2022 at 3:58 PM bradie poa  wrote:
>> 
>>> its not a good idea
>>> 
>>> i have settings.py in the same folder with wsgi.py
>>> 
>>> 
 On Tuesday, November 8, 2022 at 4:07:09 AM UTC-8 Kasper Laudrup wrote:
 On 08/11/2022 10.41, Namanya Daniel wrote: 
 > Hello, am hosting a django application with namecheap for the very first 
 > time and am getting " Internal Server ErrorError 500" , in the error 
 > log, wsgi.py shows that there's not settings 
 > 
 > how do i handle this 
 > 
 
 You add the settings. 
 
 Kind regards, 
 Kasper Laudrup 
>>> 
>>> -- 
>>> 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...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/django-users/9f4bfc65-8319-4c19-85b2-7ac7ff1d7ff9n%40googlegroups.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...@googlegroups.com.
>> 
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/django-users/03931t9smoccio3p86jn4id8.1667912304054%40email.vivo.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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/django-users/e867ff52-2a67-4d4e-8147-a4d2a15f1952n%40googlegroups.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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/AF94E7E2-2BFD-44C2-8B63-6B9447CB9D33%40gmail.com.