Skip to main content

Stock user app but without usernames

Project description

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.

History

0.1.1 (2014-11-24)

  • Adds a get_username method to User model

0.1.0 (2014-08-15)

  • 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-email-users-0.1.1.tar.gz (8.3 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page