https://github.com/khasbilegt/django-user-email
Custom, simple Django User model with only email and name fields
https://github.com/khasbilegt/django-user-email
authentication django email user username
Last synced: about 1 year ago
JSON representation
Custom, simple Django User model with only email and name fields
- Host: GitHub
- URL: https://github.com/khasbilegt/django-user-email
- Owner: khasbilegt
- License: mit
- Created: 2021-09-15T18:12:06.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2024-09-06T20:16:40.000Z (almost 2 years ago)
- Last Synced: 2025-04-13T22:40:42.909Z (about 1 year ago)
- Topics: authentication, django, email, user, username
- Language: Python
- Homepage:
- Size: 86.9 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
django-user-email
Installation •
Contributing •
License
Custom, simple Django User model with email as username
## Installation
1. Use your preferred package manager ([pip](https://pip.pypa.io/en/stable/), [poetry](https://pypi.org/project/poetry/), [pipenv](https://pypi.org/project/pipenv/)) to install the package. For example:
```bash
$ poetry add django-user-email
```
2. Then register 'user_email', in the 'INSTALLED_APPS' section of your project's settings.
```python
# settings.py
...
INSTALLED_APPS = (
...
'user_email',
)
...
```
3. Set AUTH_USER_MODEL - Since it's a custom User model Django needs to know the path of the model
```bash
# settings.py
...
AUTH_USER_MODEL = 'user_email.User'
...
```
## Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
## License
[MIT License](https://choosealicense.com/licenses/mit/)