Skip to content
This repository has been archived by the owner on Dec 26, 2023. It is now read-only.

hotwire-django/django-turbo-allauth

Repository files navigation

Warning

This library is unmaintained. Integrating Hotwire and Django is so easy that you are probably better served by writing a little bit of Python in your code than using a full-blown library that adds another level of abstraction. It also seems that the Django community is leaning more towards HTMX than Hotwire so you might want to look over there if you want more "support" (but we still think that Hotwire is very well suited to be used with Django)

Hotwired/Turbo django-allauth integration

This package provides subclasses modifying the django-allauth views https://github.com/pennersr/django-allauth to provide valid return codes.

This package is required in order to provide allauth compatability with Turbo. Turbo form validation either setting the attribute data-turbo="false" in the form, or returning a 4** response. This provides subclasses for the latter.

Disclaimer: the Hotwired/Turbo client libraries are, at time of writing, still in Beta. We expect there will be breaking changes until the first stable release. This package, and the Turbo client, should therefore be used with caution in a production environment. The version used in testing is @hotwired/turbo==7.0.0-beta.5.

Requirements

This library is tested for Python 3.8+ and Django 3.0+.

Installation

pip install django-turbo-allauth

To install from Git:

git clone https://github.com/hotwire-django/django-turbo-allauth

cd django-turbo-allauth

python setup.py install

Note: This library does not include any client libraries (Turbo or Stimulus). You may wish to add these yourself using your preferred Javascript build tool, or use a CDN. Please refer to the Hotwire documentation on installing these libraries.

Full documentation on ReadTheDocs:

https://django-turbo-allauth.readthedocs.io/en/latest/

License

This project is covered by the MIT license.

About

Turbo views compatible with django-allauth

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages