Forums

Changes to html files are not updated on live site

I'm making changes to the html template files of my Django app, then saving it, and reloading the proper app in the web dashboard, but these changes aren't showing up in the public site. When I view the html files again, I see that the changes I made are still there and have been properly saved. I tried clearing cache/cookies but the same problem persists.

Issue solved

good job!

                 / ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄\    
    <<<<<<:>~  <   Yay!          |   
                 \_________/

what did you do?

Normally just reloading from the "Web" page should work -- is it not working for you?

I'm experiencing this problem too. My HTML is not refreshing even though it shows changes when I go back to the file, I have clear my browser cache and reloaded the file.

When you say that you reloaded the file, was that using the green "reload" button on the "Web" page?

Yup!

It still is not updating

May we take a look at your files? What files did you change and what did you expect to see?

I faced this problem too. It turns out that the browser is to blame. Clearing cookies does not help, but if you open the website on another browser, all changes will be displayed normally. (Doesn't work for me on Google Chrome :))

Added: Clearing the browser cache helps, but it's better to use the ctrl + f5 keyboard shortcut, it helps too.

When you update the files - you should reload the webapp. Thank me later :-)

+1000 to both of those suggestions -- shift-F5 (which I think is the same as control-F5) is a good way to force reload, and it's definitely important to use the "Reload" button on the "Web" page inside PythonAnywhere after making code changes.