Skip to main content

This package allows you to import and export data in your Django admin.

Project description

Django Admin Bulk IO

This package allows you to import and export data in your Django admin. It supports various formats like CSV, JSON, and XML.

Features

  • Import data: Easily import data into your Django models from CSV, JSON, and XML files.
  • Export data: Export data from your Django models to CSV, JSON, and XML files.
  • Admin integration: Seamlessly integrates with the Django admin interface.
  • Customizable serializers: Allows customization of how data is serialized and deserialized.
  • Support for related fields: Handles import/export of related model data.
  • Error handling and reporting: Provides detailed error messages during import/export operations.

Installation

```bash
pip install django-admin-bulk-io
```

Configuration

  1. Add django_admin_bulk_io to your INSTALLED_APPS in settings.py:

    INSTALLED_APPS = [
        # ... other apps
        'django_admin_bulk_io',
    ]
    
  2. In your admin.py, import and use the BulkImportMixin and BulkExportMixin:

    from django.contrib import admin
    from django_admin_bulk_io.admin import BulkImportMixin, BulkExportMixin
    
    @admin.register(YourModel)
    class YourModelAdmin(admin.ModelAdmin):
        pass
    

Usage

Import

In the Django admin, navigate to the list view of the model you want to import data into.

  1. Click on the "Import" button.
  2. Choose the file you want to import and select the format (CSV, JSON, or XML).
  3. Click "Import" to begin the import process. Export

Export

  1. Select the objects you want to export (or select all).
  2. From the "Action" dropdown, choose "Export selected objects". Choose the desired export format (CSV, JSON, or XML).

Contributing

Contributions are welcome! Please submit bug reports and pull requests.

License

This project is licensed under the MIT License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django_admin_bulk_io-1.2.tar.gz (11.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_admin_bulk_io-1.2-py3-none-any.whl (13.1 kB view details)

Uploaded Python 3

File details

Details for the file django_admin_bulk_io-1.2.tar.gz.

File metadata

  • Download URL: django_admin_bulk_io-1.2.tar.gz
  • Upload date:
  • Size: 11.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.0

File hashes

Hashes for django_admin_bulk_io-1.2.tar.gz
Algorithm Hash digest
SHA256 ccab0b8a0c55f4635b507b9ee157ace41b43cbfcdb7ff7145260faf901f06518
MD5 2d1d56744733f5608ed9db3fce989cc0
BLAKE2b-256 c36f68e42d78a6f96618f262dd19f74cf81dbb963f7a6dad9554b2792c0e10ef

See more details on using hashes here.

File details

Details for the file django_admin_bulk_io-1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for django_admin_bulk_io-1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1baebdbae1198391f32872b8a100c31050b4d57917b0208ca76a63b4dd81307f
MD5 e19b73be1f7f625b3563c5576ff1fe6c
BLAKE2b-256 1cfb1adf0673a7f41b0bab3438fb1b07f7f4a1d6dcfc783c712f0c58d1b8c33b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page