Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
css not working in Django
#1
I am using django 2.2.7

I have a template called index.html (attached).
Inside here, I have li tags for which I want to remove the bullet points.
So in my style.css file (also attached), I write nav li {list-style-type: none;}.

However, when I load the page, i still see bullet points on my li tags.
Have I missed something?

Attached Files

Thumbnail(s)
       
Reply
#2
ok, it seems like whenever I want to make changes to my css, i need to delete the existing file and create a new one and give it a different name. Then it works.

But surely, I cannot continue on to work like that right?
Reply
#3
(Jul-01-2020, 01:54 PM)mp3909 Wrote: But surely, I cannot continue on to work like that right?
It's because browser do cache css files,then on normal reload it will not use immediately changes made local yet.
Look at this Thread for different solutions.
Reply
#4
thank you Snippsat, that thread helped solve the issue!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  <title> django page title dynamic and other field (not working) lemonred 1 2,073 Nov-04-2021, 08:50 PM
Last Post: lemonred
  Django: How to automatically substitute a variable in the admin page at Django 1.11? m0ntecr1st0 3 3,246 Jun-30-2019, 12:21 AM
Last Post: scidam
  My Django 2.0.6 logging is not working while product merging PrateekG 0 2,114 Jul-26-2018, 02:24 PM
Last Post: PrateekG
  django manage.py startserver - not working lewashby 3 18,218 Nov-24-2016, 11:24 PM
Last Post: lewashby

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020