How can I access Django template variables like {{ STATIC_URL }} in the referenced file.js that is included using
<script src="/static/file.js" />
in my template?
Looking for the best approach to provide access to template variables in file.js. Any suggestions?