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.

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

History

1.1.0 (2017-07-11)

  • Updated password change form link for User’s ModelAdmin class

1.0.0 (2016-04-21)

  • Remove User.title field (POTENTIALLY BREAKING). This field should not have been added(!). If you’re using this field you shouldn’t upgrade!

  • Squashed migrations (POTENTIALLY BREAKING). If you’re using 0.4.0 or an older version and want to upgrade, consider faking the migration to 0001 and then removing the title field. As long as you’re using 0.4.0 the title field is nullable, however.

  • Drop support for Django 1.6, 1.7

  • Add support for Django 1.9

  • Add support for Python 3.5

0.4.0 (2015-04-15)

  • Update Django migrations to reflect field changes for base user model

0.3.0 (2015-04-10)

  • Support Django 1.8

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-1.1.0.tar.gz (8.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_email_users-1.1.0-py2.py3-none-any.whl (9.0 kB view details)

Uploaded Python 2Python 3

File details

Details for the file django-email-users-1.1.0.tar.gz.

File metadata

File hashes

Hashes for django-email-users-1.1.0.tar.gz
Algorithm Hash digest
SHA256 7d0759947a5013913890328b95d1defe91531620fa9089bab3f73c2616b87f32
MD5 0ac800311a2f43d9db772cc8dff5addb
BLAKE2b-256 3c9f15e2c7ba1c7710b62169ddf42eb1f02db219db577180cc41611938194aba

See more details on using hashes here.

File details

Details for the file django_email_users-1.1.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for django_email_users-1.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 97d14c8429a5ecb0b239acbf35f53f7de61850d1f2ace1ce01740a55b9029d99
MD5 4d7b4f6ce4d2d80ed41ca5c3d8264641
BLAKE2b-256 25bc908e81a086b9a459ed5c5f284b489a5881b29a314597e6c62442aee45836

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page