No project description provided
Project description
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
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
# Clone the repo
git clone git@github.com:danihodovic/django-allauth-ui.git
cd django-allauth-ui.git
# Create the virtual env
python -m venv .venv
# Activate the virtual env. This has to be done every time you enter the directory.
source .venv/bin/activate
# 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.
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
File details
Details for the file django_allauth_ui-1.5.0.tar.gz
.
File metadata
- Download URL: django_allauth_ui-1.5.0.tar.gz
- Upload date:
- Size: 37.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.9.7 Linux/5.15.0-119-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a486308dc790e76dfab5df72f6b7c1ab2c939e067db40a57eeb6597a202b095 |
|
MD5 | ca488c2af9045d856c6e65aa825c5ea1 |
|
BLAKE2b-256 | 938b6b9da0c0e6ec86e056fd4cfa8b4b756d2ec81b040dc944694d05aaec6ff4 |
File details
Details for the file django_allauth_ui-1.5.0-py3-none-any.whl
.
File metadata
- Download URL: django_allauth_ui-1.5.0-py3-none-any.whl
- Upload date:
- Size: 54.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.9.7 Linux/5.15.0-119-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b0ce47f5bc02a4ad9630632190291a4e14bd66950d19b5e57b096d837080f6e2 |
|
MD5 | 6dc6ad3b5c7fa5c2368349c1d860a923 |
|
BLAKE2b-256 | 8982585d8e7666d136e14b18fb74a37ce3c26acd7e26b1ce74b1a9b8579f88e1 |