Hotwired/Turbo subclasses for allauth views
Project description
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.4.
Requirements
This library is tested for Python 3.7+ 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.
Changelog
[0.0.4] - 2021-2-2
Support for Python 3.7 and Django 3.0
[0.0.3] - 2021-7-1
Ensure redirects return a 303 in line with Turbo docs
[0.0.2] - 2021-5-1
Update to latest django-turbo-response, remove template partials
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.
Source Distribution
Built Distribution
Hashes for django-turbo-allauth-0.0.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | eddaa8ecece3ac3e9b88b77d965c933faa59c76822706c4523783b4d75d7c435 |
|
MD5 | 58d840b2b3201111fbb57581c807346c |
|
BLAKE2b-256 | 648ffd7fbe30d0dd8508663d3f02febbb79772904aba528647c8a1d572b9458a |
Hashes for django_turbo_allauth-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2ecf2b0a79ab34f0bd08f37f2e46c547aece584862d59e1dac4a5c1ffca62d2b |
|
MD5 | a5eb6c8caa4ee4451dbaaea9b299084a |
|
BLAKE2b-256 | 3180b8b32554c9b2d981369cf9cbf3e4e366d6be16f4ca37f7c89a7218c86338 |