Django js file plus version solves the problem of not taking effect

/opt/archery/common/templates/base.html

Before adding the version number

<script src="{% static 'dist/js/formatter.js' %}"></script>

 After adding the version number

<script src="{% static 'sql-formatter/sql-formatter.min.js' %}?v=20200630"></script>
<script src="{% static 'dist/js/formatter.js' %}?v=20200630"></script>

 

<script src="/static/dist/js/formatter.js?v=20200630"></script>

Guess you like

Origin blog.csdn.net/weixin_48154829/article/details/107043564