Skip to main content

AllAuth UI

django-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

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

# 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.

Download files

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

Source Distribution

django_allauth_ui-1.8.1.tar.gz (42.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_allauth_ui-1.8.1-py3-none-any.whl (68.9 kB view details)

Uploaded Python 3

File details

Details for the file django_allauth_ui-1.8.1.tar.gz.

File metadata

  • Download URL: django_allauth_ui-1.8.1.tar.gz
  • Upload date:
  • Size: 42.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.2 CPython/3.12.7 Linux/6.8.0-60-generic

File hashes

Hashes for django_allauth_ui-1.8.1.tar.gz
Algorithm Hash digest
SHA256 5b3b607e2784fd9f861ffe5f467e0de1d18e7f92ae7047da8f26c02abb3d6a36
MD5 6098dbf1c8f562e5766b5adc8b3a4f7b
BLAKE2b-256 40381b3abb5b4a8d94b558f70e7700b8200881e605e3bc2758b29ea7b6df644b

See more details on using hashes here.

File details

Details for the file django_allauth_ui-1.8.1-py3-none-any.whl.

File metadata

  • Download URL: django_allauth_ui-1.8.1-py3-none-any.whl
  • Upload date:
  • Size: 68.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.2 CPython/3.12.7 Linux/6.8.0-60-generic

File hashes

Hashes for django_allauth_ui-1.8.1-py3-none-any.whl
Algorithm Hash digest
SHA256 306d0ebe013181a1972b6e1d2ecaf911e95e247dfb1df50d05a794cad7dca84e
MD5 ec4e65f66837754f21ab044bff2a37ae
BLAKE2b-256 be9b4a0972599e807c0da4f9a869dc3705b3fa3a2be240b143d9e76a7e240fc0

See more details on using hashes here.

Release history Release notifications | RSS feed

Supported by

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