django sekizai {% addtoblock %} tag is not working properly
问题 I'm trying to implement django sekizai app. It is duplicating the js files that i'm adding. base template: {% load sekizai_tags %} ... {% render_block "my_js" %} template that is using this base: {% load sekizai_tags %} <div id="a1" > {% addtoblock "my_js" %} <script type="text/javascript" src="{{ MEDIA_URL }}js/my_js.js"></script> {% endaddtoblock %} </div> {% addtoblock "my_js" %} <script type="text/javascript" src="{{ MEDIA_URL }}js/my_js.js"></script> {% endaddtoblock %} Now here the