Django : Is it a good idea to generate JS dynamically?

后端 未结 5 2179
北恋
北恋 2021-02-03 12:23

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

5条回答
  •  情书的邮戳
    2021-02-03 12:48

    The .js that gets sent to the browser would vary. That could make debugging more cumbersome. Maybe not a problem but something to potentially consider...

提交回复
热议问题