i guess the problem is syntax error in your load static at the top of the page put a spce between the percentage sign and the load below is a clearer explanation: your load static looks like this {%load static %} then change it to this {% load static %} the difference is that there is space between the sign % and the LOAD keyword
On Sun, Jul 5, 2020 at 10:53 PM 'Akash Sinha' via Django users < django-users@googlegroups.com> wrote: > > In your settings.py file you have to mention your static path , please > check if you have mentioned that. 2nd if everything is good . Try to access > that css file on the browser .start the server with python manage.py > runserver and type the full path of the file in > url,("localhost:8000/static/style.css") if you can see your css code on > browser then u have check ur html file. > > 1. Check for static tag in html file i.e {% load static % } > > 2. static path in html file > > > On Sun, 28 Jun 2020 at 12:29 am, Avi shah > <getvi...@gmail.com> wrote: > I have developed a front end using bootstrap and different themes , and > now I want to convert it into django html , I've loaded the static files > and mentioned all the templates sec in my settings.py but for some reason > my css is not being shown on the project even though it's been collected > using collectstatic in manage.py > > > -- > 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/50077ad1-eacb-4584-9566-dede788826aco%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/2129713194.2118202.1593939180763%40mail.yahoo.com > <https://groups.google.com/d/msgid/django-users/2129713194.2118202.1593939180763%40mail.yahoo.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 django-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAFujGLzu4DRkgRrG0GjKSgQN0wkTWRjkw6MWadfc4hgYYdn3Vg%40mail.gmail.com.