sage Jan 5
Replying to @AdamChainz
Wouldn't that be too much? I just want to put a Django URL into JavaScript. I'm thinking of something like: <script>var target_url = {% url 'urlname' %};</script> Or maybe make it a data-attribute of an element Then use it in script.js <script src={% static 'js/script.js' %} />