Skip to content

sakkhar/django-email-users

 
 

Repository files navigation

Django email users

Build Status

Current PyPI release

Download count

For when you want regular Django users but without the usernames.

This is a stock replacement for Django's auth.User model that removes the username field in favor of a unique email field. Both the User model and the forms enforce lower cased email addresses to ensure uniqueness without surprises.

Inspired by the users module in pydanny's original Django cookiecutter project template which I kept using and then editing to support email addresses.

Installing

Install and download with pip:

pip install django-email-users

Add to your installed apps in your settings.py file:

INSTALLED_APPS = (
    'users',
)

Change your project's configured user in your settings.py file:

AUTH_USER_MODEL = 'users.User'

Profit.

If you are using South with Django prior to Django 1.7, you will need to use South 1+.

About

Stock Django users without the username

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 92.4%
  • Makefile 7.6%