django-language-field
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.
Metadata
Release files for django-language-field 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django-language-field-0.0.3.tar.gz | 69.5 kB | Without provenance | Details for django-language-field-0.0.3.tar.gz |
Release files / django-language-field-0.0.3.tar.gz
| Download URL | django-language-field-0.0.3.tar.gz |
|---|---|
| Size | 69.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8836a6a1345d8e0f2181ab39a49ced7f810c69eb717948a45daf0779182fe8dc
|
|
BLAKE2b-256 checksum How to use checksums |
e5793277312e90af738d26a3ca1efa82cea9a7dbb83772e06f9e1536ae90812e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for django-language-field 0.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.