python manage.py runserver 0:80 --insecure
After the website run, new “pyechart” will be dynamically generated and cover the old chart html, but the old html still be displayed after refreshing the webpage. I can only restart the server ,then it shows the new one, why?
We would need to see the code involved to be able to answer your question. This includes the view and the template. (We may need to see more, but this is a good place to start.) If you have two different views involved (one that creates the chart and a different one that displays it), we’ll need to see both.
It may also be helpful to see the console log from runserver showing the original request and the request after the update has occurred - including a couple lines on each side for context. (Please, copy/paste the text from the console, do not post images / screen captures.)
Note: When posting code (or templates) here, enclose the code (or template) between lines of three backticks - `. This means you’ll have a line of ```, then the code, then another line of ```. (This forces the forum software to keep your code properly formatted.)