Custom user model app for Django featuring email as username and class-based views for authentication.
Project description
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.
Install the package:
$ pip install django-authtools
Add authtools to your INSTALLED_APPS.
Add the following to your settings.py:
AUTH_USER_MODEL = 'authtools.User'
Add authtools.urls to your URL patterns:
urlpatterns = patterns('', # ... url(r'^accounts/', include('authtools.urls')), # ... )
Enjoy.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file django-authtools-0.1.2.tar.gz
.
File metadata
- Download URL: django-authtools-0.1.2.tar.gz
- Upload date:
- Size: 25.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8f5bd58fbc324b0b0515399a9190443cd10de17f850ddc7fce6c9361e1e89c4 |
|
MD5 | 29be3e65b0ccba818fb7e5a71644c8c3 |
|
BLAKE2b-256 | 4f5b1eb0cbc75e03bf851a3e064883747ea1a63f950a943bcc5d79171d3a8eca |