Static File Changes Not Reflected In Served Stylesheet
When I'm trying to change anything in my CSS files, I can't see any changes in the stylsheet shown to the browser. After I build the project, I change a style (for example, the bac
Solution 1:
There are a couple things here that could be giving you issues.
- Your browser is caching the stylesheets. To disable this caching, you can open your developer tools, go the network tab, and click "Disable cache" (in Firefox or Chrome, at least).
- Your project is configured to serve the collected files. To fix this, run
./manage.py collectstatic
- this will collect all your CSS into a single file, which can then be served.
Solution 2:
sounds like caching is on on your browser. if you're using chrome, open dev tools and check the box to disable cache
Post a Comment for "Static File Changes Not Reflected In Served Stylesheet"