Forums

CSS not rendering correctly while in production

Hi everybody, I am new to using pythonanywhere, and facing some issues while deploying a django app for the first time.

I have set my STATIC_URL and STATIC_ROOT variables in settings.py, but I see that my styling is not rendering as it should. In fact, when I press go to my web app ctrl+u and take a look to its css, I see that it is rendering a prior version of what I used for my styling. However, my style.css file is actualy up to date !

I really don't know what to do and would be really thankfull if anyone could help.

(P.S : in orde to avoid having a too large question, I didn't put any code, but I will be more than happy to give any precisions about my code)

  1. double check is that the actual static file on pythonanywhere is updated.
  2. clear your browser cache and reload the page (eg: ctrl+shift+r reload)
  3. do you have a cdn provider that is caching content?

Oh thank you so much, your second option of reloading the page worked for me ! So sorry for wasting your time with a problem that can be resolved in a such simple way

no problem, glad we could help!