Skip to main content

Custom, simple Django User model with telephone number as username

Project description

django-user-tel

ci status pypi link codecov
supported python versions supported django versions

InstallationContributingLicense

Custom, simple Django User model with phone number as username

Installation

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

INSTALLED_APPS = (
    ...
    'user_tel',
)

...
  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_tel.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

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_user_tel-1.0.1.tar.gz (5.4 kB view hashes)

Uploaded Source

Built Distribution

django_user_tel-1.0.1-py3-none-any.whl (8.8 kB view hashes)

Uploaded Python 3

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