Skip to main content

Custom user model for django >=1.5 with support for multiple user types

Project description

https://travis-ci.org/mishbahr/django-users2.svg?branch=master Latest Version Downloads License Supported Python versions

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)

  • handy mixins to control a user’s access to views (borrowed from django-braces)

  • 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

  1. Install django-users2:

    pip install django-users2
  2. Add django-users2 to INSTALLED_APPS:

    INSTALLED_APPS = (
        ...
        'users',
        ...
    )
  3. Set your AUTH_USER_MODEL setting to use users.User:

    AUTH_USER_MODEL = 'users.User'
  4. Once you’ve done this, run the syncdb command to install the model used by this package:

    python manage.py syncdb
  5. 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


Download files

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

Source Distribution

django-users2-0.1.0.tar.gz (17.1 kB view hashes)

Uploaded Source

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