🕿 django-phonenumber-field 🕿
A Django library which interfaces with python-phonenumbers to validate, pretty print and convert phone numbers. The python-phonenumbers library is a port of Google’s libphonenumber library, which powers Android’s phone number handling.
Choosing a phonenumbers provider
The python-phonenumbers library comes in two flavors:
# Installs phonenumbers minimal metadata pip install "django-phonenumber-field[phonenumberslite]"
# Installs phonenumbers extended features (e.g. geocoding) pip install "django-phonenumber-field[phonenumbers]"
phonenumber_field to the list of the installed apps in
INSTALLED_APPS = [ # Other apps… "phonenumber_field", ]