Skip to main content

Stock user app but without usernames

Project description

For when you want regular Django users but email as 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.

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-2.1.0.tar.gz (6.0 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-2.1.0-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file django_email_users-2.1.0.tar.gz.

File metadata

  • Download URL: django_email_users-2.1.0.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.28.1

File hashes

Hashes for django_email_users-2.1.0.tar.gz
Algorithm Hash digest
SHA256 096992cbc309d754c077ce01a09316ea9bc2040b136963adfa2ff1e87cf1bc36
MD5 85614d3490f03d88e6ead33cc412d4b2
BLAKE2b-256 63b0c9ff6140511ef176e9d04609d829c6dcde21ae3ea9b8639c6518f23406c2

See more details on using hashes here.

File details

Details for the file django_email_users-2.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for django_email_users-2.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 73f488ae75451344ac2a5388fe366879262671595236dda1ed66fdd8de5462c0
MD5 57d8140d3a585b746302f05984f42aad
BLAKE2b-256 0fe131c93461208853126383a5a9c6c9a63989881f8cc12ed049fbbcb947b88b

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