Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Django not showing updated css files

Tags:

caching

django

So I'm using sass to update my Django site and I am using git to version the whole thing. I recently made an update to CSS file that had some bad errors in it. Sass compiled the changes and I pushed the new version to the server. I have looked on the server and the new css file is in fact there and reflects the changes, however when I look at our site the css file is being referenced as a cached file:

"/static/CACHE/css/35ed7f45f0e3.css"

Unfortunatley this cached version still has the errors in it, how can I tell django and memcache to refresh this reference so my site doesn't look like poop?

I have tried clearing the cache via the shell but the old cached file reference persists in my html.

like image 546
leotemp Avatar asked Dec 26 '22 16:12

leotemp


1 Answers

Did you run collectstatic ?

python manage.py collectstatic 
like image 84
Adrien Avatar answered Jan 02 '23 11:01

Adrien