Skip to main content

Extended django loaddata command for uploading fixtures

Project Status
CI/CD Latest Release
Quality Coverage
Package PyPI - Version PyPI - Support Python Versions Project PyPI - Downloads
Meta types - Mypy License - MIT code style - Ruff

Benefits of using this cli

  1. 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.
  2. 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.

Install

  1. Install package

    pip install django-loaddata
    
  2. Add app name to INSTALLED_APPS

    INSTALLED_APPS = [
        'django_loaddata',
    ]
    
  3. Run django migrate

    python manage.py migrate
    

Command to run the program:

python manage.py loaddata

Contributing

We would love you to contribute to django-loaddata, pull requests are very welcome! Please see CONTRIBUTING.md for more information.

Metadata

Release files for django-loaddata 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-loaddata 0.0.2
File Size Uploaded Provenance Actions
django_loaddata-0.0.2.tar.gz 25.5 kB With provenance Details for django_loaddata-0.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for django-loaddata 0.0.2
File Interpreter ABI Platform Actions
django_loaddata-0.0.2-py3-none-any.whl Python 3 none any Details for django_loaddata-0.0.2-py3-none-any.whl

Total release size: 40.2 kB

Release files / django_loaddata-0.0.2.tar.gz

Download URL django_loaddata-0.0.2.tar.gz
Size 25.5 kB
Tags Source
SHA-256 checksum
How to use checksums
823880af95bb1c3fa7cde44b187fbe0bb17584d2b1cd44cb9ca79beaa67499bd
BLAKE2b-256 checksum
How to use checksums
d4d18b9a8f82f6d7ca2f22096651b329739d58f38b147222d029c2e912997a6f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.8

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 8, 2025.

Transparency log

Release files / django_loaddata-0.0.2-py3-none-any.whl

Download URL django_loaddata-0.0.2-py3-none-any.whl
Size 14.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f594ffb70da0a7c2e539ccd44b362515b7b6bd5231a1e852b1f3c7f3354e5430
BLAKE2b-256 checksum
How to use checksums
a311f55fb5ae90035b4d8bc636d44c139bb0156aad935edb7308e397af9773d6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.8

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 8, 2025.

Transparency log

Security for django-loaddata 0.0.2

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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for django_loaddata-0.0.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 8, 2025.

Transparency log

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.

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page