skillfed

django-phonenumbers

Phone number field for Django admin

django-phonenumbers v1.0.1 78.5K downloads/30d#14,440 on PyPI0
Permissive license BSD License Abandoned released

What it is and what it does

django-phonenumbers is a Django app that adds a PhoneNumberField for models and forms, allowing you to store phone numbers with region-specific validation and formatting. It integrates with Django admin to provide a dedicated phone input widget and uses configurable regex patterns and format strings to display numbers according to regional conventions. The package stores phone numbers as objects with country code, region code, and number components, and provides template filters and tags to format them on display.

However, it has been abandoned since 2015-08-06 and was designed for Django 1.7 and 1.8, making it unsuitable for modern Django projects without significant maintenance or forking.

Use it for:

  • Add a phone number field to a Django model with automatic validation and formatting for a specific region.
  • Display phone numbers in templates using region-specific formats via the phone_number_format filter.
  • Provide a dedicated phone input widget in Django admin with country and region selection.
  • Store and retrieve phone numbers with their country code and region code as separate attributes.
  • Format phone numbers inline in templates using custom regex patterns and prefix rules.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Provides a Django model field and form field for storing, validating, and formatting phone numbers with region-specific patterns and display rules.

No. The package is abandoned (last commit 2015-08-06) and targets Django 1.7 and 1.8, which are over a decade old. Compatibility with modern Django, Python, and phone number standards is not documented and almost certainly broken. Use a maintained alternative instead.

Install

django-phonenumbers on PyPI

pip

pip install django-phonenumbers

uv

uv add django-phonenumbers

poetry

poetry add django-phonenumbers

Installing django-phonenumbers

Before you install

Installation is straightforward with no runtime dependencies, but the package is abandoned—last updated 2015-08-06 with no commits since. It was built for Django 1.7 and 1.8, making compatibility with modern Django versions uncertain.

License in practice

Licensed under BSD License (permissive), so commercial and private use are permitted without restriction.

Quickstart

pip install django-phonenumbers

# In settings.py
INSTALLED_APPS = ['django_phonenumbers', ...]
PHONE_NUMBER_REGION = 'GE'

# In models.py
from django_phonenumbers.models import PhoneNumberField
class MyModel(models.Model):
    phone = PhoneNumberField()

Requires Django 1.7 or 1.8; compatibility with modern Django versions is not documented and likely broken.

Verify before relying

  • Compatibility with Django versions released after 1.8 is unknown.
  • Whether the package works with current Python versions despite 'Python 3 :: Only' classifier is unconfirmed.
  • Support for modern phone number libraries or standards is unclear given the age of the codebase.
  • Whether region-specific formatting actually works as documented for all configured regions.

Package facts

License BSD License (permissive)
Python support not specified
Install friction low — pure-Python wheel
Runtime dependencies none
Maintenance abandoned — 4,026 days since the last release
Last repo commit (repository archived)
First released
Downloads 78,487/month — #14,440 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: django_phonenumbers-1.0.1-py3-none-any.whl

Development Status :: 4 - BetaEnvironment :: Web EnvironmentFramework :: Django :: 1.7Framework :: Django :: 1.8Intended Audience :: DevelopersLicense :: OSI Approved :: BSD LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3 :: Only

Tags

django phone number fieldphone number validation djangointernational phone formattingdjango admin phone inputphone number model fieldregional phone format djangophone number storage django
abandonedlegacy-django

More Dynamic Content packages