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.1.tar.gz (11.0 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.1-py3-none-any.whl (13.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: django_admin_bulk_io-1.1.tar.gz
  • Upload date:
  • Size: 11.0 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.1.tar.gz
Algorithm Hash digest
SHA256 c1d63b6a9435ee58846787e9449372565ff2727bb4b76b6dd7270436837c9afd
MD5 d0b201e0b3fc6fc4ca3432af145dca7f
BLAKE2b-256 931d3d49f5f616fea17f49f2abd196e74a32e5fd31bc59ec51dcf782e2bed6b5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_admin_bulk_io-1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b03b0374cb5efe05bed3a6d4ec199296033b646822f215aece1322b72da77dbb
MD5 42bf08767a0820a5c28d9232ee0f422c
BLAKE2b-256 a91bd516a3285169f568a8a28df4a23a0dd91f2980f8f4618923c08e0cf52f5d

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