Skip to main content

An extensible user-accounts application for Django

Project description

Django Accounts

Add these lines in your INSTALLED_APPS of settings.py file!


# Third party apps!
'accounts',
'crispy_forms',

Add these lines in your settings.py file!


CRISPY_TEMPLATE_PACK = 'bootstrap4'

AUTHENTICATION_BACKENDS = (
    'django.contrib.auth.backends.ModelBackend',
    'accounts.authentication.EmailOrUsernameModelBackend',
)

Add this line in urlpatterns of your root/core urls.py file!


path('accounts/', include('accounts.urls')),

Default parameters which you can change in your settings.py


UNIQUE_EMAIL = bool # True
ACCOUNT_ACTIVATION = bool # True
SIGNUP_URL = str['uri'] # 'signup/'
SIGNIN_URL = str['uri'] # 'signin/'

SIGNUP_TEMPLATE = str['path'] # 'accounts/register.html'
ACTIVATION_EMAIL_TEMPLATE = str['path'] # 'accounts/activate.html'
LOGIN_TEMPLATE = str['path'] # 'accounts/login.html'
FORGET_TEMPLATE = str['path'] # 'accounts/reset-password.html'
PROFILE_TEMPLATE = str['path'] # 'accounts/profile.html'

CURRENT_SITE = str['url'] # 'http://127.0.0.1:8000'

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

dj-acc-0.0.1.tar.gz (8.5 kB view details)

Uploaded Source

File details

Details for the file dj-acc-0.0.1.tar.gz.

File metadata

  • Download URL: dj-acc-0.0.1.tar.gz
  • Upload date:
  • Size: 8.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for dj-acc-0.0.1.tar.gz
Algorithm Hash digest
SHA256 4cff92698a6c71c90b1454693b3aeebef87fd58a804cb369b495ab19e80d2ac4
MD5 9a26391a425b8f1e8eb3d147dc54b30d
BLAKE2b-256 bb54adff021b6f395342957b44ad48e442f98705bc72b974ea9d2221cee8f6e5

See more details on using hashes here.

Supported by

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