Skip to main content

A pluggable django app that provides a comprehensive language and region choices field

Project description

Language and Region Fields for Django apps. Includes all language choices from the IANA Language Subtag Registry.

Included is:

  • LanguageField, a model field
  • RegionField, a model field


pip install django-language-fields

Basic usage

Add languages to the list of the installed apps in your file:


Then, you can use it like any regular model field:

from languages.fields import LanguageField, RegionField

class MyModel(models.Model):
    language = LanguageField()

class MyModel(models.Model):
    region = RegionField()

Internally, LanguageField and RegionField are based upon CharField and by default represented as strings.

As with CharField’s, it is discouraged to use null=True use blank=True if you want to make it a non-required field.

Project details

Release history Release notifications

This version


Download files

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

Files for django-language-fields, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size django_language_fields-1.0.0-py3-none-any.whl (70.9 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size django-language-fields-1.0.0.tar.gz (69.6 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page