Skip to main content

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.6] - 2021-4-2

Dependency updates

[0.0.5] - 2021-2-4

Leverage turbo-response adapter mixin

[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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-turbo-allauth-0.0.7.tar.gz (3.4 kB view hashes)

Uploaded Source

Built Distribution

django_turbo_allauth-0.0.7-py3-none-any.whl (4.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page