a better way to do ajax in django

后端 未结 4 1585
情歌与酒
情歌与酒 2020-12-25 08:51

The other day I wrote some AJAX for a Django app that i have been working on.

I come from Ruby on Rails, so I haven\'t done much in the way of raw JS.

So bas

4条回答
  •  春和景丽
    2020-12-25 09:48

    What exactly seems hacky about it? Seems like a perfectly valid way of doing something.

    I guess an alternative would be serialising to json and sending it back to a javascript templating snippet.

提交回复
热议问题