django-phonenumber-field

An international phone number field for django models.


License
MIT
Install
pip install django-phonenumber-field==8.1.0

Documentation

django-phonenumber-field

A Django library which interfaces with python-phonenumbers to validate, pretty print and convert phone numbers. python-phonenumbers is a port of Google's libphonenumber library, which powers Android's phone number handling.

Documentation

https://django-phonenumber-field.readthedocs.io/

Running tests

tox needs to be installed. To run the whole test matrix with the locally available Python interpreters and generate a combined coverage report:

tox

run a specific combination:

tox -e py310-djmain,py39-djmain