A pluggable django app that provides a comprehensive language choices field
Project description
Language Field for Django apps. Includes all language choices from the IANA Language Subtag Registry.
Included is:
LanguageField, a model field
LanguageField, a form field (Not yet implemented)
regenerate.py, a script to parse the latest language list from IANA
Installation
pip install django-language-field
Basic usage
Add languages to the list of the installed apps in your settings.py file:
INSTALLED_APPS = [ ... 'languages', ... ]
Then, you can use it like any regular model field:
from languages.fields import LanguageField class MyModel(models.Model): .. language = LanguageField() ..
Internally, LanguageField is based upon CharField and by default represents the as a string.
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 | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Hashes for django-language-field-0.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | deb09956cc5c1d6940606bacfa3f633d2368b531ead9622086ba2eeca5bcfc4c |
|
MD5 | d33ebc4c6cf7c353d33502bbd14ef4ec |
|
BLAKE2b-256 | 6f95b9ac346f84eed144dd5a8f010dd99ccabb3eb87e4dbb16c1ddd2429278ee |