When I write my JS files for a Django project, of course I do some AJAX calls, and for the moment the urls for those calls are hard-coded (which is very ugly).
I was thi
I would go for a hybrid technique. Serve most of your javascript statically. But in your Django template, have a block that defines various global variables, which are generated by the server-side code -
url
is a good example. Then your static JS can refer to the variables that are generated in the dynamic code.