Integrate Hotwire Turbo in your Django app.
Project description
Note: This is not ready for production. APIs likely to change dramatically. Please drop by our Slack channel to discuss!
Turbo for Django
Requirements
- Python 3.6+
- Django 3.1+
- Channels 3.0+ (Optional for Turbo Stream support)
Documentation
Documentation is hosted on readthedocs here.
Description
This repository aims to help you integrate Hotwire Turbo with Django. Inspiration taken from @hotwired/turbo-rails. Documentation of the latest development version can be found on readthedocs.org.
Discussions about a Django/Hotwire integration are happening on the Hotwire forum. And on Slack, which you can join by clicking here!
As we discover this new magic, you can expect to see a few repositories with experiments and demos appear in @hotwire-django. If you too are experimenting, we encourage you to ask a write access to the GitHub organization and to publish your work in a @hotwire-django repository.
We expect to gain knowledge and experience with Hotwire over time and will try to extract useful code from the demos and package it in self contained "pip-installable" packages: turbo-django and stimulus-django.
Structure
The turbo
directory contains the package with helpers, templatetags and utilities for integrating Turbo tightly into Django. Currently, it contains a Broadcastable
mixin and a Django Channels websocket consumer to allow for realtime updates with Turbo Streams.
License
Turbo-Django is released under the MIT License to keep compatibility with the Hotwire project.
If you submit a pull request. Remember to add yourself to CONTRIBUTORS.md
!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.