https://github.com/bennylope/django-email-users
Stock Django users without the username
https://github.com/bennylope/django-email-users
auth django python users
Last synced: 10 months ago
JSON representation
Stock Django users without the username
- Host: GitHub
- URL: https://github.com/bennylope/django-email-users
- Owner: bennylope
- License: other
- Created: 2014-08-15T20:49:49.000Z (over 11 years ago)
- Default Branch: main
- Last Pushed: 2025-01-26T15:49:28.000Z (about 1 year ago)
- Last Synced: 2025-04-14T08:06:05.375Z (10 months ago)
- Topics: auth, django, python, users
- Language: Python
- Size: 45.9 KB
- Stars: 9
- Watchers: 4
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- Changelog: HISTORY.rst
- Contributing: CONTRIBUTING.rst
- License: LICENSE
Awesome Lists containing this project
README
==================
Django email users
==================
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.