django-localflavor
Country-specific Django helpers
Decision gist · record as of 2026-08-14
Yes. The package is actively maintained, has low install friction, carries a permissive license, and solves a real problem for Django applications serving specific countries. Install it when you need country-specific form validation; skip it if your application is country-agnostic or uses a custom validation layer.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Django 4.2, 5.0, 5.1, 5.2, or 6.0; Python 3.9 or later.
- Low install friction with a pure Python wheel.
- Actively maintained with a recent release (13 days old) and steady commits.
License · maintenance · safety
BSD-3-Clause (permissive) — BSD-3-Clause permissive license allows use in commercial and private projects with minimal restrictions; attribution required.
last release 2026-08-01 (13 days) · last repo commit 2026-08-03 · 922 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,029,601 downloads/mo, #4,473 on PyPI
Alternatives
Verify before relying
pip install django-localflavor
from django_localflavor.us.forms import USStateField
field = USStateField()- Which specific countries or regions are currently supported by version 5.1
- Whether breaking data changes in version 5.1 affect existing deployments beyond LV, NP, NO flavors mentioned
What it is and what it does
django-localflavor is a standalone Django package that provides localized form fields and validators for specific countries and regions. It was originally part of Django's core but was separated to keep the framework lean. The package includes postal code validators, government ID number fields, and other country-specific helpers that integrate seamlessly with Django's form system.
The package depends on Django and python-stdnum for validation logic. It actively supports modern Django versions (4.2 through 6.0) and Python 3.9+. The project is actively maintained with recent releases and regular commits, making it suitable for production use in applications that need localized form handling.
Use it for
- Validate postal codes in a user registration form for a specific country
- Build a Django form with country-specific government ID number fields for compliance
- Localize form validation rules across a multi-country web application
- Add region-specific address or tax ID validation to checkout flows
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
The package is actively maintained, has low install friction, carries a permissive license, and solves a real problem for Django applications serving specific countries. Install it when you need country-specific form validation; skip it if your application is country-agnostic or uses a custom validation layer.
Install
django-localflavor on PyPI
Before you install
Low install friction with a pure Python wheel. Actively maintained with a recent release (13 days old) and steady commits. Requires Django and python-stdnum as runtime dependencies.
Requires Django 4.2, 5.0, 5.1, 5.2, or 6.0; Python 3.9 or later.
License in practice
BSD-3-Clause permissive license allows use in commercial and private projects with minimal restrictions; attribution required.
Quickstart
pip install django-localflavor
from django_localflavor.us.forms import USStateField
field = USStateField()
Verify before relying
- Which specific countries or regions are currently supported by version 5.1
- Whether breaking data changes in version 5.1 affect existing deployments beyond LV, NP, NO flavors mentioned
Package facts
| License | BSD-3-Clause permissive |
| Python support | Supports the current Python release >=3.9 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 2 packagesdjangopython-stdnum |
| Maintenance | Actively maintained 13 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,029,601 / month, #4,473 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableEnvironment :: Web EnvironmentFramework :: DjangoFramework :: Django :: 4.2Framework :: Django :: 5.0Framework :: Django :: 5.1Framework :: Django :: 5.2Intended Audience :: DevelopersOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.9Topic :: Internet :: WWW/HTTP |
Evidence: django_localflavor-5.1-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “django country-specific form fields”
- django-localflavorProvides country-specific form fields, validators, and helpers for…
- google-i18n-addressValidates, normalizes, and formats postal addresses according to…
- django-permissionedformsExtends Django's forms framework to conditionally show or hide form…
Give your agent the search over MCP, or paste the wish link into any chat.
More WWW/HTTP packages
urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.
Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.
h11 is a pure-Python HTTP/1.1 protocol implementation that handles parsing and serializing HTTP messages without any built-in I/O, letting you integrate it with any network layer you choose.
HTTPX is a fully featured HTTP client library for Python that provides both sync and async APIs, with support for HTTP/1.1 and HTTP/2, plus an integrated command-line client.
Install it if you are building new projects or modernizing existing ones that rely on HTTP.
A minimal low-level HTTP client library that sends HTTP requests with thread-safe and task-safe connection pooling, supporting HTTP/1.1, HTTP/2, proxies, and both sync and async interfaces.
aiohttp is an async HTTP client and server framework built on asyncio, supporting both WebSockets and middleware-based routing for building concurrent web applications.
Install it if you need async HTTP client or server capabilities in asyncio-based applications.
See also django-countries · django-phonenumber-field · django-settings-holder · google-i18n-address · django-timezone-field · django-stubs · django-nine · drf-recaptcha · django-allow-cidr · policyengine-core