Home Features Docs Blog Security Examples Quick Start

djust Documentation

Everything you need to build reactive, real-time Django applications with djust.

What is djust?

djust brings Phoenix LiveView-style reactive server-side rendering to Django. Build rich, interactive web applications without writing complex JavaScript, while maintaining the security and simplicity of server-side rendering.

Key Features

  • No JavaScript Required - Build interactive UIs with Python/Django
  • Real-time Updates - Changes pushed to clients via WebSocket
  • Rust-Powered - 10-100x faster rendering with Rust VDOM engine
  • Zero Build Step - ~5KB client JavaScript, no bundling needed
  • 40+ Components - Ready-to-use UI component library

Quick Example

fromdjustimport LiveView, event

classCounterView(LiveView):
    template_name = 'counter.html'

    defmount(self, request, **kwargs):
        self.count = 0

    @event
    defincrement(self):
        self.count += 1

    @event
    defdecrement(self):
        self.count -= 1
<div dj-liveview>
  <h1>Count: {{ count }}</h1>
  <button dj-click="decrement">-</button>
  <button dj-click="increment">+</button>
</div>

Getting Help