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.3.tar.gz (119.8 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.3-py3-none-any.whl (124.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: django_admin_bulk_io-1.3.tar.gz
  • Upload date:
  • Size: 119.8 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.3.tar.gz
Algorithm Hash digest
SHA256 5358413d6fb05cc0091ad55150fadf24d3953d589655616ff4a72ffa4d7ca063
MD5 acd5b7571c21237d82bec72ba7cc5702
BLAKE2b-256 5a4073ec575d3fed020615091dcfa40deb6b6c4d36a49bf199d921db4cb1370f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_admin_bulk_io-1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 7395710f92849d53f8826562b3413e409309ba780fa9949007d04c63bee83127
MD5 150ba8bd44df8fad51e05aa9634de5af
BLAKE2b-256 1943bc76829a98d5606a0aa4a0f6f12533d1db54a091707143453dd5134212f5

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