Css is not updateing

23 views
Skip to first unread message

2018 sr

unread,
Aug 8, 2019, 12:54:00 PM8/8/19
to Django users
Hi all,

I am working on django i am trying to update the css file but it is modified on styles.css file but not reflecting on browser 

this is my css file 

<link rel="stylesheet" href="{% static 'css/style.css' %}">

salimon jamiu olashile

unread,
Aug 8, 2019, 1:06:50 PM8/8/19
to django...@googlegroups.com
Hey, 

I’d recommend versioning your static files in the href attribute so as to force the browser to reload the static file as a whole when you increase the version number. You can do this by adding “?v=1”. The question marks & equality sign are compulsory to make this work.

Find attachment below:

Julio Cojom

unread,
Aug 8, 2019, 2:42:51 PM8/8/19
to django...@googlegroups.com
Ctrl+f5 to clear cache and refresh page.

Also there is a few quality extensions of the browser who make this simple in development.

Regards.

--
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/CAFhdOCO1HSsSYbYN%3Dwc85pZmE4QncEdykxb6xL4wPL57d9m%2BhA%40mail.gmail.com.

Tosin Ayoola

unread,
Aug 9, 2019, 2:43:50 PM8/9/19
to django...@googlegroups.com
Just view the page source code to see of it is properly linking to ur css

On Aug 8, 2019 19:41, "Julio Cojom" <jul.ale...@gmail.com> wrote:
Ctrl+f5 to clear cache and refresh page.

Also there is a few quality extensions of the browser who make this simple in development.

Regards.

El jue., 8 ago. 2019 a las 11:06, salimon jamiu olashile (<tunedae...@gmail.com>) escribió:
Hey, 

I’d recommend versioning your static files in the href attribute so as to force the browser to reload the static file as a whole when you increase the version number. You can do this by adding “?v=1”. The question marks & equality sign are compulsory to make this work.

Find attachment below:

--
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+unsubscribe@googlegroups.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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAHRQUHnx%2BaD-GUA6d9irqovRxCODYH2dZT9EHRT9dmiqGRe5MQ%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages