Skip to main content

Custom user model app for Django featuring email as username and class-based views for authentication.

Project description

Build Status

A custom user model app for Django 1.5+ that features email as username and other things. It tries to stay true to the built-in user model for the most part.

The main differences between authtools’s User and django.contrib.auth’s are email as username and class-based auth views.

Read the django-authtools documentation.

Quickstart

Before you use this, you should probably read the documentation about custom User models.

  1. Install the package:

    $ pip install django-authtools
  2. Add authtools to your INSTALLED_APPS.

  3. Add the following to your settings.py:

    AUTH_USER_MODEL = 'authtools.User'
  4. Add authtools.urls to your URL patterns:

    urlpatterns = patterns('',
        # ...
        url(r'^accounts/', include('authtools.urls')),
        # ...
    )
  5. Enjoy.

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-authtools-0.2.2.tar.gz (30.8 kB view details)

Uploaded Source

File details

Details for the file django-authtools-0.2.2.tar.gz.

File metadata

File hashes

Hashes for django-authtools-0.2.2.tar.gz
Algorithm Hash digest
SHA256 4bc2ede57b4afcd782e99b530db2eadaa47fb63ffe51fcfc72e1c50e4a4bb541
MD5 5d6e4c255455f3c1493bceb52e10d044
BLAKE2b-256 4e0fe108ffab50a6cc13af5827513fef8d9ed4b3c73ef6d3996aa7d42967d6c5

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