Custom user model for django >=1.5 with support for multiple user types
Project description
Custom user model for django >=1.5 with support for multiple user types and lots of other awesome utils (mostly borrowed from other projects).
Features
email as username for authentication (barebone extendable user models)
support for multiple user types (using the awesome django-model-utils)
automatically creates superuser after syncdb (really handy during the initial development phases)
built in emails/passwords validators (with lots of customisable options)
prepackaged with all the templates, including additional templates required by views in django.contrib.auth (for a painless signup process)
Documentation
The full documentation is at https://django-users2.readthedocs.org.
Quickstart
Install django-users2:
pip install django-users2
Add django-users2 to INSTALLED_APPS:
INSTALLED_APPS = ( ... 'users', ... )
Set your AUTH_USER_MODEL setting to use users.User:
AUTH_USER_MODEL = 'users.User'
Once you’ve done this, run the syncdb command to install the model used by this package:
python manage.py syncdb
Add the django-users2 URLs to your project’s URLconf as follows:
urlpatterns = patterns('', ... url(r'^accounts/', include('users.urls')), ... )
which sets up URL patterns for the views in django-users2 as well as several useful views in django.contrib.auth (e.g. login, logout, password change/reset)
History
0.1.0 (2014-01-01)
First release on PyPI.
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.