I have a very simple flask script below that is supposed to display a dashboard containing some figures that are independent HTML files.
from flask import Flask, send_from_directory
app = Flask(__name__)
@app.route('/')
def home():
return send_from_directory('.', 'dashboard.html')
if __name__ == '__main__':
app.run(debug=True)
The HTML file figure.html
displays within the dashboard, but is MASSIVELY outdated. I can open figure.html
manually and see that the up-to-date pie chart is different than the one being displayed.
A sample of the HTML from dashboard.html
that is supposed to display the figure in figure.html
is below:
<div class="col-sm-4">
<div class="chart-wrapper">
<div class="chart-stage">
<iframe width="100%" height="480px" frameborder="0" scrolling="no" src="static/figure.html"></iframe>
</div>
<div class="chart-notes">
Display Figure #1.
</div>
</div>
</div>
I suspect that this is caused by a caching issue.
Does anyone know how to make the correct figure.html
file display?