Hasty Briefsbeta

Django LiveView 2.0.0

2 days ago
  • #Real-time
  • #WebSockets
  • #Django
  • Django LiveView enables real-time, reactive web interfaces using WebSockets without JavaScript.
  • Features include server-side rendering, real-time updates, and integration with Django's ORM, forms, and authentication.
  • Setup requires Django 4.2+, Python 3.10+, Redis, and Channels 4.0+.
  • Handlers are defined with `@liveview_handler` decorator and automatically discovered in `liveview_components/` directories.
  • Supports broadcasting to all clients, background tasks, form validation, and multi-language support.
  • Includes middleware for authentication, logging, and rate limiting.
  • Provides Stimulus controller for frontend interactions like clicks, inputs, and form submissions.
  • Supports custom WebSocket paths, reconnection strategies, and extensive configuration options.
  • Encourages best practices like focused handlers, reusable templates, and proper error handling.
  • Open-source under MIT license, inspired by Phoenix LiveView and Laravel Livewire.