Re: can someone help me why my static files is not being rendered?

2023-06-17 Thread Mohammad Sadegh
> Yes send message to my account -- 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

Re: can someone help me why my static files is not being rendered?

2023-06-16 Thread Aspersh Upadhyay
Thanks a lot to Makan Dianka and everyone who replied to my question. Your help was greatly appreciated. I was able to solve the problem using Makan Dianka's solution. On Friday, June 16, 2023 at 9:00:20 AM UTC+5:30 Makan Dianka wrote: > It is : > > STATICFILES_DIRS=[ > . > ] > > Not

Re: can someone help me why my static files is not being rendered?

2023-06-15 Thread Makan Dianka
It is : STATICFILES_DIRS=[ . ] Not : STATICFILES_DIR=[ . ] Just add S in the end of DIR like DIRS and make sur u create static folder in your project root. Le jeu. 15 juin 2023 à 16:52, Ngaga Dancan a écrit : > Use load static first before you use extends > > > On Thu,

Re: can someone help me why my static files is not being rendered?

2023-06-15 Thread Ngaga Dancan
Use load static first before you use extends On Thu, Jun 15, 2023, 16:52 Prosper Lekia wrote: > Where is the Python.png located? > > From your code, it should be directly in your static folder not a > subfolder. So verify your file structure first. If every is in order, > confirm if whitenoise

Re: can someone help me why my static files is not being rendered?

2023-06-15 Thread ALBERT ASHABA AHEEBWA
According to your settings, the `Python.png` file should be inside `static` on the same level as `manage.py`. |---static / |-- Python.png |--manage.py |-- The file structure of almost that kind. If you're in development and this is a practice thing, you don't need `whitenoise` just yet.

Re: can someone help me why my static files is not being rendered?

2023-06-15 Thread Prosper Lekia
Where is the Python.png located? >From your code, it should be directly in your static folder not a subfolder. So verify your file structure first. If every is in order, confirm if whitenoise is installed, and been added to your MiddleWare. On Thu, Jun 15, 2023, 14:33 Aspersh Upadhyay <

can someone help me why my static files is not being rendered?

2023-06-15 Thread Aspersh Upadhyay
my settings.py STATIC_URL = 'static/' STATICFILES_DIR = [ BASE_DIR / "static" ] Template where I am trying to load static files {% extends 'base.html' %} {% load static %} {% block title %} Issue With Django static files {%endblock title %} {% block body %}