'Python Django load data from text document

I am using python and django to make a website that should be able to load data from a text document and display it. Until now I have converted the data from txt format to html and loaded it to a div like so :

<div id='data'>
{% include "data.html" %}
</div>

Unfortunately when I hit refresh after I have modified data.html there is no update. I would like to be able to load the html file on every refresh



Solution 1:[1]

Render out refreshed data from view via context is an easier way I think, But if you have to use include in template, you can try to output a template name from your view, like {'data_template': 'data.html'} via context, then {% include data_template %} inside template.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 xyzone