
Security News
rv Is a New Rust-Powered Ruby Version Manager Inspired by Python's uv
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
django-languages-plus
Advanced tools
A django model & fixture containing common languages and culture codes
.. image:: https://badge.fury.io/py/django-languages-plus.svg :target: https://badge.fury.io/py/django-languages-plus
.. image:: https://github.com/cordery/django-languages-plus/actions/workflows/tox.yml/badge.svg :target: https://github.com/cordery/django-languages-plus/actions/workflows/tox.yml
django-languages-plus provides models and fixtures for working with both common languages and 'culture codes' or locale codes, like pt-BR.
Note that this is only a small (but popular) subset of all living languages, and is not even a comprehensive set of the ISO 639 languages. It does however include the endonym/autonym/exonym.
The Language model contains all ISO 639-1 languages and related information from http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes
The model provides the following fields (original wikipedia.org column name in parentheses).
::
pip install django-languages-plus
Add languages_plus
to your INSTALLED_APPS
Migrate your database and load the language data fixture::
python manage.py migrate
python manage.py loaddata languages_data.json.gz
In your code use::
from languages_plus.models import Language
lang = Language.objects.get(iso_639_1='en')
django-countries-plus(https://pypi.python.org/pypi/django-countries-plus) is now an explicit requirement. After installing both packages you can run the following command once to associate the two datasets and generate a list of culture codes (pt_BR for example)::
from languages_plus.utils import associate_countries_and_languages
associate_countries_and_languages()
django-countries-plus >= 1.
Django: Tested against the LTS versions of 3, 4, and the latest of 5. Python 3
Does the code actually work?
::
$ poetry install
$ poetry run pytest
Or for the full tox suite:
::
$ poetry install
$ pip install tox
$ tox
FAQs
A django model & fixture containing common languages and culture codes
We found that django-languages-plus demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.
Security News
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.