
Security News
High Salaries No Longer Enough to Attract Top Cybersecurity Talent
A survey of 500 cybersecurity pros reveals high pay isn't enough—lack of growth and flexibility is driving attrition and risking organizational security.
django-phonenumber-filter
Advanced tools
A simple Django filter that will format and print a phone number in a template.
.. image:: https://circleci.com/gh/foundertherapy/django-phonenumber-filter.png :target: https://circleci.com/gh/foundertherapy/django-phonenumber-filter
django-phonenumber-filter
is a Django app that will format and print a
phonenumber in a template.
$ 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" }}
FAQs
A simple Django filter that will format and print a phone number in a template.
We found that django-phonenumber-filter demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A survey of 500 cybersecurity pros reveals high pay isn't enough—lack of growth and flexibility is driving attrition and risking organizational security.
Product
Socket, the leader in open source security, is now available on Google Cloud Marketplace for simplified procurement and enhanced protection against supply chain attacks.
Security News
Corepack will be phased out from future Node.js releases following a TSC vote.