{"id":25006384,"url":"https://github.com/friskes/django-loaddata","last_synced_at":"2026-02-18T00:01:24.146Z","repository":{"id":275580435,"uuid":"926151897","full_name":"Friskes/django-loaddata","owner":"Friskes","description":"Extended django loaddata command for uploading fixtures","archived":false,"fork":false,"pushed_at":"2025-02-08T16:01:07.000Z","size":26,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-18T15:10:54.768Z","etag":null,"topics":["cli","database","django","django-models","fixtures","json","loaddata","postgres","python"],"latest_commit_sha":null,"homepage":"","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/Friskes.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","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,"zenodo":null}},"created_at":"2025-02-02T17:15:53.000Z","updated_at":"2025-02-08T15:59:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"f1a716dd-5888-490f-b1fb-894154de4057","html_url":"https://github.com/Friskes/django-loaddata","commit_stats":null,"previous_names":["friskes/django-loaddata"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/Friskes/django-loaddata","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Friskes%2Fdjango-loaddata","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Friskes%2Fdjango-loaddata/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Friskes%2Fdjango-loaddata/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Friskes%2Fdjango-loaddata/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Friskes","download_url":"https://codeload.github.com/Friskes/django-loaddata/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Friskes%2Fdjango-loaddata/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29563263,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-17T21:50:49.831Z","status":"ssl_error","status_checked_at":"2026-02-17T21:46:15.313Z","response_time":100,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["cli","database","django","django-models","fixtures","json","loaddata","postgres","python"],"created_at":"2025-02-05T01:40:41.710Z","updated_at":"2026-02-18T00:01:24.110Z","avatar_url":"https://github.com/Friskes.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Extended django loaddata command for uploading fixtures\n\n\u003cdiv align=\"center\"\u003e\n\n| Project   |     | Status                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |\n|-----------|:----|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| CI/CD     |     | [![Latest Release](https://github.com/Friskes/django-loaddata/actions/workflows/publish-to-pypi.yml/badge.svg)](https://github.com/Friskes/django-loaddata/actions/workflows/publish-to-pypi.yml)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |\n| Quality   |     | [![Coverage](https://codecov.io/github/Friskes/django-loaddata/graph/badge.svg?token=vKez4Pycrc)](https://codecov.io/github/Friskes/django-loaddata)                                                                                                                                                                                                                                                                                                                               |\n| Package   |     | [![PyPI - Version](https://img.shields.io/pypi/v/django-loaddata?labelColor=202235\u0026color=edb641\u0026logo=python\u0026logoColor=edb641)](https://badge.fury.io/py/django-loaddata) ![PyPI - Support Python Versions](https://img.shields.io/pypi/pyversions/django-loaddata?labelColor=202235\u0026color=edb641\u0026logo=python\u0026logoColor=edb641) ![Project PyPI - Downloads](https://img.shields.io/pypi/dm/django-loaddata?logo=python\u0026label=downloads\u0026labelColor=202235\u0026color=edb641\u0026logoColor=edb641)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |\n| Meta      |     | [![types - Mypy](https://img.shields.io/badge/types-Mypy-202235.svg?logo=python\u0026labelColor=202235\u0026color=edb641\u0026logoColor=edb641)](https://github.com/python/mypy) [![License - MIT](https://img.shields.io/badge/license-MIT-202235.svg?logo=python\u0026labelColor=202235\u0026color=edb641\u0026logoColor=edb641)](https://spdx.org/licenses/) [![code style - Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/format.json\u0026labelColor=202235)](https://github.com/astral-sh/ruff) |\n\n\u003c/div\u003e\n\n## Benefits of using this cli\n1. Adds the `--insert_only` flag to the loaddata command, which filters existing database records from the fixture and leaves only new records to insert, thereby preventing overwriting of field values (which may have been changed by the user) in existing records when loaddata is run again.\n2. Adds the `--check_fields` flag, which performs the same functions as the `--insert_only` flag, but additionally remembers the current fields of the loaded table when the fixture is loaded for the first time, so that when adding a new field to the table and restarting loaddata, only the records from the fixture for these new fields are successfully installed, the old fields will not be changed.\n\n## Install\n1. Install package\n    ```bash\n    pip install django-loaddata\n    ```\n\n2. Add app name to `INSTALLED_APPS`\n    ```python\n    INSTALLED_APPS = [\n        'django_loaddata',\n    ]\n    ```\n\n3. Run django migrate\n    ```\n    python manage.py migrate\n    ```\n\n### Command to run the program:\n```\npython manage.py loaddata\n```\n\n## Contributing\nWe would love you to contribute to `django-loaddata`, pull requests are very welcome! Please see [CONTRIBUTING.md](https://github.com/Friskes/django-loaddata/blob/main/CONTRIBUTING.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffriskes%2Fdjango-loaddata","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffriskes%2Fdjango-loaddata","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffriskes%2Fdjango-loaddata/lists"}