๐Ÿš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more โ†’
Socket
Book a DemoInstallSign in
Socket

django-allauth-ui

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

django-allauth-ui

1.8.1
PyPI
Maintainers
1

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

  • ๐Ÿ“ฑ 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

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

Keywords

django

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts