Skip to content

khasbilegt/django-user-email

Repository files navigation

django-user-email

ci status pypi link codecov
supported python versions supported django versions

InstallationContributingLicense

Custom, simple Django User model with email as username

Installation

  1. Use your preferred package manager (pip, poetry, pipenv) to install the package. For example:
$ poetry add django-user-email
  1. Then register 'user_email', in the 'INSTALLED_APPS' section of your project's settings.
# settings.py
...

INSTALLED_APPS = (
    ...
    'user_email',
)

...
  1. Set AUTH_USER_MODEL - Since it's a custom User model Django needs to know the path of the model
# 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

About

Custom, simple Django User model with only email and name fields

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages