Hotwired/Turbo subclasses for allauth views
Project description
This package provides subclasses modifying the django-allauth views https://github.com/pennersr/django-allauth so they can work with Turbo Streams for form validation. The package django-turbo-response https://github.com/hotwire-django/django-turbo-response is used to provide the required mixin classes.
This package is required in order to provide allauth compatability with Turbo. Turbo form validation requires that validation errors be returned in a Turbo Stream response.
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.1.
Requirements
This library is tested for Python 3.8+.
Installation
pip install django-turbo-allauth
To install from Git:
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.
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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b6a64833156355eb4fe21e4d67f84b665c2b33b5da7640aab1a9973ad80b6fd8 |
|
MD5 | 0d8ea447d424507adfefb783ccfa5182 |
|
BLAKE2b-256 | 3c902fb27ca3641d70dfd056607dd81d7326d1048559ec7ccaa83ffbd8f02c74 |
Hashes for django_turbo_allauth-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c12854cf3474b59c9671817b1b1d5f0d6999c69cec7ee51f0fcf60fe5cb13b5e |
|
MD5 | e667f84a9a1da4194b0fb11608dc926f |
|
BLAKE2b-256 | f0410b071fcc76264d1266b1e8e5309963b33f8554d0c5253874de1885eaa456 |