How to make STATIC_URL work in external JS Files (Django)
I am trying to use STATIC_URL in external javascript file. I was expecting the result as it is working in template, but I found that it is not working in external Javascript file. Please also tell me some work around to make STATIC_URL work in javascript file as it will make my project more manageable. Also I am sending many ajax request and i want to have something like url template tag in my JS file. Please let me know if you know solution of any of them. Thanks I use a simple Django app for making Python / Django settings available in javascript. https://github.com/incuna/django-settingsjs