1

I'm having some issue with a django app and it's CSS file refreshing. Basically I can see that the changes I make in my file are identified and copied in the root folder of my website, however when I open up the web browser that change is not being displayed at all:

The style.css copied in the root folder

My style.css

My browser not picking up on the changes

I am using Firefox as a browser however this issue happens also on Chromium browser

6
  • What if you use Ctrl+F5? Likely the style sheet is being cached by the browser. Commented Aug 10, 2021 at 7:56
  • Tried that too a bunch, didn't help with this issue Commented Aug 10, 2021 at 7:59
  • Also closing and restarting the server a few times Commented Aug 10, 2021 at 8:00
  • Are you running in debug mode? Commented Aug 10, 2021 at 8:15
  • @dustin-we Yes ... Commented Aug 10, 2021 at 8:34

1 Answer 1

0

If you have setup everything well in your settings.py file then your best option is to disable caching form your developer panel. I had similar issues when I make changes in css and they are not updated when i refresh my browser. This is because the browser is keeping a cache of the css file and its not being updated for some reason.

So according to this post,you can disable caching

Sign up to request clarification or add additional context in comments.

1 Comment

Your answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.