Trying hard to wrap my head around what Datastar is and isn't. The docs try to get you to use server-sent events, but at the same time it looks like you don't need to - you can use it in the same way you use HTMX with no backend changes.

The server-sent events look interesting, but Django has warnings against using them, especially with WSGI, but also with ASGI. So perhaps Django isn't a good fit for this?

data-star.dev

docs.djangoproject.com/en/5.2/ref/request-response

添加评论
点赞收藏
点踩分享查看原文
评论
?
参与讨论