Skip to main content
Django Phone Number Filter
==========================

.. image:: https://circleci.com/gh/foundertherapy/django-phonenumber-filter.png
:target: https://circleci.com/gh/foundertherapy/django-phonenumber-filter

About
-----

``django-phonenumber-filter`` is a Django app that will format and print a
phonenumber in a template.

Getting Started
---------------

$ pip install django-phonenumber-filter

Add "phonenumber_filter" to your INSTALLED_APPS setting like this:

INSTALLED_APPS = (
...
'phonenumber_filter',
)

Then, in your template, load the ``phonenumber_filter`` template tag library:

{% load phonenumber_filters %}

To format and print a phone number, use the ``phonenumber`` filter:

{{ raw_phone_number|phonenumber }}

If you want to format the phone number for a particular country, include the
optional country code:

{{ raw_phone_number|phonenumber:"IL" }}

International and E164 formats are also supported:

{{ raw_phone_number|phonenumber_international:"IL" }}
{{ raw_phone_number|phonenumber_e164:"IL" }}

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-phonenumber-filter-1.0.0.tar.gz (3.0 kB view details)

Uploaded Source

File details

Details for the file django-phonenumber-filter-1.0.0.tar.gz.

File metadata

File hashes

Hashes for django-phonenumber-filter-1.0.0.tar.gz
Algorithm Hash digest
SHA256 8dd94d867d5550f4d3d6a2fe859eb50dc816d329658fddd74d5a3c3b78734f0a
MD5 b0b2126164fd2902bcb9bd9b3939a55b
BLAKE2b-256 a3e61c5c0bfb6366d6d44c7532fe8c55dacc48895342701c76eadde7c1a84ae3

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.0 This release

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page