Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Django Server Sent Events to provide live data requirements #2739

Open
2 of 4 tasks
phillxnet opened this issue Nov 11, 2023 · 0 comments
Open
2 of 4 tasks

Django Server Sent Events to provide live data requirements #2739

phillxnet opened this issue Nov 11, 2023 · 0 comments
Labels
UI-enhancement Enhancement, renovation, update within Web-UI.

Comments

@phillxnet
Copy link
Member

phillxnet commented Nov 11, 2023

In line with "Reduce JS libs dependencies via HTMX" #2735 and as a follow-up to our "Update python-socketio & python-engineio to latest" #2591 it looks like, post Django 4.2, we can use server sent events:

StreamingHttpResponse now supports async iterators when Django is served via ASGI.

See also: https://2023.pycon.org.au/program/WMBADG/

Using Django 4.2's StreamingHttpResponse and HTMX SSE to provide real time notifications

Required depencies

  • Django 4.2
  • Psycopg 3
  • Add HTMX library
  • Move to ASGI for our Django
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
UI-enhancement Enhancement, renovation, update within Web-UI.
Projects
None yet
Development

No branches or pull requests

1 participant