KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
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 thinking of having the JS files served by django (instead of Apache), so I could take advantage of the template tags ( {% url %} !!!). Is there a reason why I shouldn't do this ? Or is there a right way to do this ? (I can give a least one : it will consume a lot of time resending JS files that haven't changed. What would be great is to have an application that generates files when restarting django server, and serves them statically after !)
Tags (comma-separated)
Save Edits
Cancel