Skip to main content

Tools for managing django user accounts.

Project description

Django Account Center

A comprehensive Django package for managing user accounts with a modern, customizable interface built on Bootstrap 5 and Django Cotton components.

Features

  • Complete Account Management: Email management, password changes, session management, and MFA support
  • Social Authentication: Integration with django-allauth for social login providers
  • Payment Integration: Optional Stripe integration for subscription management
  • Responsive Design: Built with Bootstrap 5 and Cotton components
  • Flexible Menu System: Powered by django-flex-menus for customizable navigation
  • Activity Streams: Optional integration with django-activity-stream for social features
  • Theme Support: Customizable templates and themes

Installation

Using pip

pip install django-accounts-center

Using Poetry (Development)

git clone https://github.com/SamuelJennings/django-accounts-center.git
cd django-accounts-center
poetry install

Quick Start

1. Add to Django Settings

Add the required packages to your INSTALLED_APPS:

INSTALLED_APPS = [
    # Django core apps
    "django.contrib.admin",
    "django.contrib.auth",
    "django.contrib.sites",
    "django.contrib.contenttypes",
    "django.contrib.sessions",
    "django.contrib.messages",
    "django.contrib.staticfiles",

    # Third-party packages
    "allauth",
    "allauth.account",
    "allauth.socialaccount",
    "allauth.mfa",
    "allauth.usersessions",
    "crispy_forms",
    "crispy_bootstrap5",
    "flex_menu",
    "django_cotton",
    "cotton_bs5",
    "easy_icons",

    # Django Account Center
    "dac",
    "dac.addons.allauth",

    # Optional addons
    "dac.addons.stripe",  # For Stripe integration
    "dac.addons.actstream",  # For activity streams

    # Your apps
    "your_app",
]

2. Configure Authentication

# Authentication backends
AUTHENTICATION_BACKENDS = [
    "django.contrib.auth.backends.ModelBackend",
    "allauth.account.auth_backends.AuthenticationBackend",
]

# Crispy forms configuration
CRISPY_ALLOWED_TEMPLATE_PACKS = "bootstrap5"
CRISPY_TEMPLATE_PACK = "bootstrap5"

# Site ID (required for allauth)
SITE_ID = 1

3. Configure URLs

Add the account center URLs to your main urls.py:

from django.contrib import admin
from django.urls import path, include

urlpatterns = [
    path("admin/", admin.site.urls),
    path("account-center/", include("dac.urls")),
    path("accounts/", include("allauth.urls")),  # For allauth integration
    path("", include("your_app.urls")),
]

4. Run Migrations

python manage.py migrate

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_accounts_center-0.1.0.tar.gz (43.4 kB view details)

Uploaded Source

Built Distribution

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

django_accounts_center-0.1.0-py3-none-any.whl (102.8 kB view details)

Uploaded Python 3

File details

Details for the file django_accounts_center-0.1.0.tar.gz.

File metadata

  • Download URL: django_accounts_center-0.1.0.tar.gz
  • Upload date:
  • Size: 43.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for django_accounts_center-0.1.0.tar.gz
Algorithm Hash digest
SHA256 85e65fa15334ad5221165f54467dfd2733dadacd8387b80ac25383c5b296b787
MD5 b5efbf80ce581b672a07888fe987e7ed
BLAKE2b-256 a67f1af19e55805be77a542dfc411aebe1c698ad92d65554fd897e982cbd87a4

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_accounts_center-0.1.0.tar.gz:

Publisher: on-release-main.yml on SamuelJennings/django-accounts-center

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file django_accounts_center-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for django_accounts_center-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9e44b8e4b1b0a8d2ed93c0c1265aa67188c0809031cc370b4aa337e91ebfa72e
MD5 b7b36a973b787f54b77bce443a3297ab
BLAKE2b-256 2b3d31c41b3586eea2414d84a24deff2a1c903e9b3e4abe656037dadd93cf525

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_accounts_center-0.1.0-py3-none-any.whl:

Publisher: on-release-main.yml on SamuelJennings/django-accounts-center

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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