Django CSS Not Updating

Django CSS not updating

You can bypass the cache using ctrl + F5

for detailed reference: https://en.wikipedia.org/wiki/Wikipedia:Bypass_your_cache

CSS does not update with Django

i had to clear cache to get it to update if i haven't changed it for a while. after an initial purge, it usually updates on a change.

also, as i'm using chrome, i just remove it for the last hour so it doesn't affect too many things.

Django: CSS file won't update

The issue was related to the fact that my browser had cached my old CSS file, therefore wouldn't show any updates. It was hard for me to solve the issue because I didn't really understand the problem.

The solution was quiet simple:

Ctrl + Shift + Del

In Chrome, you can use the above command to delete the cache, therefore allowing for the new static files to load.

Thanks for all the help.

CSS in django doesn't update

On mac, press shift then reload the page. It's working.

Django not showing updated css files

Did you run collectstatic ?

python manage.py collectstatic 

How to fix not updating problem with static files in Django port 8000

Well there are multiple ways to avoid this problem

  1. the simplest way is by:

    • if you are using Mac: Command+Option+R
    • if you are using Windows: Ctrl+F5

What it does is that it re-downloads the cache files enabling the update of the static files in the browser.


  1. Another way is by:

    • making a new static file and pasting the existing code of the previously used static file and then
      running the server

What happens, in this case, is that the browser doesn't use the cache memory for rendering the page as it assumes it is a different file.



Related Topics



Leave a reply



Submit