{"id":25044980,"url":"https://github.com/sectorlabs/django-localized-fields","last_synced_at":"2025-04-09T15:06:00.774Z","repository":{"id":48833566,"uuid":"71531213","full_name":"SectorLabs/django-localized-fields","owner":"SectorLabs","description":"Implementation of localized model fields using PostgreSQL HStore fields.","archived":false,"fork":false,"pushed_at":"2024-07-02T04:46:23.000Z","size":405,"stargazers_count":68,"open_issues_count":5,"forks_count":14,"subscribers_count":35,"default_branch":"master","last_synced_at":"2025-04-09T15:05:52.793Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SectorLabs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-10-21T04:56:41.000Z","updated_at":"2024-07-24T08:43:25.000Z","dependencies_parsed_at":"2024-01-23T14:02:19.581Z","dependency_job_id":"954e96ff-446f-4707-87b7-dcbdf4d63e86","html_url":"https://github.com/SectorLabs/django-localized-fields","commit_stats":{"total_commits":352,"total_committers":19,"mean_commits":"18.526315789473685","dds":"0.29261363636363635","last_synced_commit":"8c7d0773f72e3042e313bc682f3210a2a301cd39"},"previous_names":[],"tags_count":44,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SectorLabs%2Fdjango-localized-fields","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SectorLabs%2Fdjango-localized-fields/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SectorLabs%2Fdjango-localized-fields/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SectorLabs%2Fdjango-localized-fields/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SectorLabs","download_url":"https://codeload.github.com/SectorLabs/django-localized-fields/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248055284,"owners_count":21040157,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-02-06T05:20:07.816Z","updated_at":"2025-04-09T15:06:00.745Z","avatar_url":"https://github.com/SectorLabs.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"|  |  |                                                                                                                                                                             |\n|--------------------|---------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| :white_check_mark: | **Tests** | [![CircleCI](https://circleci.com/gh/SectorLabs/django-localized-fields/tree/master.svg?style=svg)](https://circleci.com/gh/SectorLabs/django-localized-fields/tree/master) |\n| :memo: | **License** | [![License](https://img.shields.io/:license-mit-blue.svg)](http://doge.mit-license.org)                                                                                     |\n| :package: | **PyPi** | [![PyPi](https://badge.fury.io/py/django-localized-fields.svg)](https://pypi.python.org/pypi/django-localized-fields)                                                       |\n| \u003cimg src=\"https://cdn.iconscout.com/icon/free/png-256/django-1-282754.png\" width=\"22px\" height=\"22px\" align=\"center\" /\u003e | **Django Versions** | 2.0, 2.1, 2.2, 3.0, 3.1, 3.2, 4.0, 4.1, 4.2, 5.0                                                                                                                            |\n| \u003cimg src=\"http://www.iconarchive.com/download/i73027/cornmanthe3rd/plex/Other-python.ico\" width=\"22px\" height=\"22px\" align=\"center\" /\u003e | **Python Versions** | 3.6, 3.7, 3.8, 3.9, 3.10, 3.11                                                                                                                                              |\n| :book: | **Documentation** | [Read The Docs](https://django-localized-fields.readthedocs.io)                                                                                                             |\n| :warning: | **Upgrade** | [Upgrade fom v5.x](https://django-localized-fields.readthedocs.io/en/latest/releases.html#v6-0)                                                                             \n| :checkered_flag: | **Installation** | [Installation Guide](https://django-localized-fields.readthedocs.io/en/latest/installation.html)                                                                            |\n\n`django-localized-fields` is an implementation of a field class for Django models that allows the field's value to be set in multiple languages. It does this by utilizing the ``hstore`` type (PostgreSQL specific), which is available as `models.HStoreField` since Django 1.10.\n\n---\n\n:warning: **This README is for v6. See the `v5.x` branch for v5.x.**\n\n---\n\n## Working with the code\n### Prerequisites\n\n* PostgreSQL 12 or newer.\n* Django 2.0 or newer.\n* Python 3.6 or newer.\n\n### Getting started\n\n1. Clone the repository:\n\n       λ git clone https://github.com/SectorLabs/django-localized-fields.git\n\n2. Create a virtual environment:\n\n       λ cd django-localized-fields\n       λ virtualenv env\n       λ source env/bin/activate\n\n3. Create a postgres user for use in tests (skip if your default user is a postgres superuser):\n\n       λ createuser --superuser localized_fields --pwprompt\n       λ export DATABASE_URL=postgres://localized_fields:\u003cpassword\u003e@localhost/localized_fields\n\n   Hint: if you're using virtualenvwrapper, you might find it beneficial to put\n   the ``export`` line in ``$VIRTUAL_ENV/bin/postactivate`` so that it's always\n   available when using this virtualenv.\n\n4. Install the development/test dependencies:\n\n       λ pip install \".[test]\" \".[analysis]\"\n\n5. Run the tests:\n\n       λ tox\n\n7. Auto-format code, sort imports and auto-fix linting errors:\n\n       λ python setup.py fix\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsectorlabs%2Fdjango-localized-fields","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsectorlabs%2Fdjango-localized-fields","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsectorlabs%2Fdjango-localized-fields/lists"}