AllAuth UI
UI templates for django-allauth built with Tailwind. https://django-allauth-ui.hodovi.ch.
django-allauth is a great library, but the templates it provides out of the box are minimal html. I usually end up re-designing the login / logout / signup pages for each new Django project. This library aims at providing good defaults for new projects.
Table of contents
Features
- 📱 Mobile-friendly design
- 💄 Configurable themes
- 🕵️ Support for Allauth User Sessions
- 📱Support for Multi-Factor Authentication
- 🗣️ Translations
- 🇪🇸 Spanish
- 🇫🇷 French
- 🇧🇷 Portuguese
- 🇹🇷 Turkish
- 🇮🇹 Italian
Installation
pip install django-allauth-ui
pip install django-widget-tweaks
pip install slippers
django-allauth-ui depends on jazzband/django-widget-tweaks and mixxorz/slippers to render templates. Make sure to install both packages and add them to the INSTALLED_APPS.
Add django-allauth-ui before django-allauth in your INSTALLED_APPS. See ./tests/settings.py for an example.
INSTALLED_APPS = [
"allauth_ui",
"allauth",
"allauth.account",
"allauth.socialaccount",
"allauth.socialaccount.providers.github",
"widget_tweaks",
"slippers",
]
Note:
When going to production you should run python manage.py collectstatic
Configuration
The templates can be themed using Django settings. The theme value corresponds to DaisyUI themes.
# settings.py
ALLAUTH_UI_THEME = "light"
Hacking on the project
- Install direnv: https://direnv.net/docs/installation.html
- Setup direnv: https://direnv.net/docs/hook.html
# Clone the repo
git clone git@github.com:danihodovic/django-allauth-ui.git
cd django-allauth-ui.git
# Active the virtual env
direnv allow
# Install the dependencies
pip install --upgrade pip poetry
poetry install
# Install tailwind
npm install
# Run the migrations
./manage.py migrate
# Add sample social providers
./manage.py create_test_providers
# Start the server
./manage.py runserver_plus
# Start the tailwind compilation process in another terminal
npm run-script build:watch
Make changes in allauth_ui/templates and open the browser at http://localhost:8000/accounts/login/.
Once you're done compile tailwind with npm run-script build and submit a pull-request 🃏
Contributors
Made with contrib.rocks.
Metadata
Release files for django-allauth-ui 1.8.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django_allauth_ui-1.8.1.tar.gz | 42.6 kB | Without provenance | Details for django_allauth_ui-1.8.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_allauth_ui-1.8.1-py3-none-any.whl | Python 3 | none | any | Details for django_allauth_ui-1.8.1-py3-none-any.whl |
Total release size: 111.5 kB
Release files / django_allauth_ui-1.8.1.tar.gz
| Download URL | django_allauth_ui-1.8.1.tar.gz |
|---|---|
| Size | 42.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5b3b607e2784fd9f861ffe5f467e0de1d18e7f92ae7047da8f26c02abb3d6a36
|
|
BLAKE2b-256 checksum How to use checksums |
40381b3abb5b4a8d94b558f70e7700b8200881e605e3bc2758b29ea7b6df644b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.2 CPython/3.12.7 Linux/6.8.0-60-generic
|
Release files / django_allauth_ui-1.8.1-py3-none-any.whl
| Download URL | django_allauth_ui-1.8.1-py3-none-any.whl |
|---|---|
| Size | 68.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
306d0ebe013181a1972b6e1d2ecaf911e95e247dfb1df50d05a794cad7dca84e
|
|
BLAKE2b-256 checksum How to use checksums |
be9b4a0972599e807c0da4f9a869dc3705b3fa3a2be240b143d9e76a7e240fc0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.2 CPython/3.12.7 Linux/6.8.0-60-generic
|
Security for django-allauth-ui 1.8.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.