Skip to main content

Account login, logout, and password reset.

Project description

Django Accounts

Django Accounts re-implements several views from Django contrib auth to use the messageing framework instead stand-alone pages for simple messages. It also includes a email authentication backend.


Run `pip install django-accounts-cbv`

Add `accounts` to your `INSTALLED_APPS` setting:


To your sites `` add:

urlpatterns = patterns('',
url(r'^accounts/', include('accounts.urls')),

Authentication Backends

The email authentication backend will allow users to login with the email address and password.

To enable it add `'accounts.auth_backends.EmailBackend'` to your `AUTHENTICATION_BACKENDS` setting:



Require authentication for all views.

To enable it add `'accounts.middleware.LoginRequiredMiddleware'` to your `MIDDLEWARE_CLASSES` setting:



Login inherits from FormView for easy extensibility.

Logout inhertis from RedirectView for easy extensibility. It also displays a logout message.

PasswordReset inherits from FormView for easy extensibility. It displays a message once a reset request is submited.

PasswordResetConfirm inherits from FormView for easy extensibility. It displays a message once the user has changed their password.

UserUpdate inherits from UpdateView for easy extensibility. It allows a user change their account information.


A form for changing an existing user's username and/or password. The password is optional and the form will only attempt to update the password if text is in the password input and it matches the confimation input.

Project details

Download files

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

Files for django-accounts-cbv, version 2.0
Filename, size File type Python version Upload date Hashes
Filename, size django_accounts_cbv-2.0-py2-none-any.whl (10.6 kB) File type Wheel Python version 2.7 Upload date Hashes View
Filename, size django-accounts-cbv-2.0.tar.gz (6.4 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page