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

Uploaded Source

Built Distribution

django_email_users-2.0.0-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for django_email_users-2.0.0.tar.gz
Algorithm Hash digest
SHA256 a4c9e7721d86a8e5371491b1ae843519de20f319bf4f14168f058d6f5ac9df6a
MD5 ec6d0a23f50ceff03bd2dc23c11e6a98
BLAKE2b-256 3e53eb8d494ccb6ee51acc686cc1c67b847092cdb8aa13d6bfecba30cf60f048

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_email_users-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f5d345622a22c5fba6804433d0e3e2a93a8edfbeb3bf33fb0694301be5b216cb
MD5 59d29b7e7472bcb4bf42394df28a170d
BLAKE2b-256 5e5d13694297b52251eaee11a24524624d6045994785c16c03084dbf23777172

See more details on using hashes here.

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