Skip to main content

Country-specific Django helpers

Project description

https://img.shields.io/pypi/v/django-localflavor.svg https://github.com/django/django-localflavor/actions/workflows/test.yml/badge.svg https://img.shields.io/codecov/c/github/django/django-localflavor/master.svg https://readthedocs.org/projects/django-localflavor/badge/?version=latest&style=plastic

Django’s “localflavor” packages offer additional functionality for particular countries or cultures. For example, these might include form fields for your country’s postal codes or government ID numbers.

This code used to live in Django proper – in django.contrib.localflavor – but was separated into a standalone package in Django 1.5 to keep the framework’s core clean.

django-localflavor no longer includes country specific phone number fields. The django-phonenumber-field package has excellent support for validating phone numbers in many countries and we recommend this package. https://pypi.org/project/django-phonenumber-field/

For a full list of available localflavors, see https://django-localflavor.readthedocs.io/

django-localflavor can also be found on and installed from the Python Package Index: https://pypi.org/project/django-localflavor/

Release Overview

You’re encouraged to use the latest version of this package unless you need support for an unsupported version of Django.

2026-08-01 - 5.1: Django 4.2, 5.0, 5.1, 5.2 & 6.0

2025-05-21 - 5.0: Django 4.2, 5.0, 5.1 & 5.2

This release contains breaking data changes for the LV, NP and NO flavors. Please see the changelog for details: https://github.com/django/django-localflavor/blob/5.0/docs/changelog.rst

2023-04-22 - 4.0: Django 3.2, 4.0, 4.1 & 4.2

2021-05-28 - 3.1: Django 2.2, 3.0, 3.1 & 3.2

This release contains breaking data changes for the MX and IN flavors. Please see the changelog for details: https://github.com/django/django-localflavor/blob/3.1/docs/changelog.rst

2020-02-19 - 3.0: Django 2.2 & 3.0

All deprecated code has been removed in this release. This release also includes a number of other breaking changes. Please see the changelog for details: https://github.com/django/django-localflavor/blob/3.0/docs/changelog.rst

2019-05-07 - 2.2: Django 1.11 - 2.2

All deprecated code will be removed in the 3.0 release. Please run your project’s tests using python -Wd so that deprecation warnings appear and can be addressed. See changelog for details.

2018-08-24 - 2.1: Django 1.11 - 2.1

2017-12-30 - 2.0: Django 1.11 - 2.0

Project details


Download files

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

Source Distribution

django_localflavor-5.1.tar.gz (3.1 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_localflavor-5.1-py3-none-any.whl (3.1 MB view details)

Uploaded Python 3

File details

Details for the file django_localflavor-5.1.tar.gz.

File metadata

  • Download URL: django_localflavor-5.1.tar.gz
  • Upload date:
  • Size: 3.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.5

File hashes

Hashes for django_localflavor-5.1.tar.gz
Algorithm Hash digest
SHA256 afacbe4902698a6772c5621a0cad18f4e2f9f198a7284d3da57418c78c150080
MD5 f3c24edcb5f35dda0f7cc008e58e6838
BLAKE2b-256 b582844921ee72877bc0ed12dffd91d6fcd60cebc1363094b528cf159a157779

See more details on using hashes here.

File details

Details for the file django_localflavor-5.1-py3-none-any.whl.

File metadata

File hashes

Hashes for django_localflavor-5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 33a0b5418c99c733e87fd949e08ba3c6ccf7e7a9edd1458dac15586701b2cd90
MD5 0d2946541f191e177ee561d1212c40df
BLAKE2b-256 0a0e52994debc76b6b3c6f6143483835f05212466472d99066c41ea2709d7f2f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page