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
-
Add django_admin_bulk_io to your INSTALLED_APPS in settings.py:
INSTALLED_APPS = [ # ... other apps 'django_admin_bulk_io', ]
-
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.
- Click on the "Import" button.
- Choose the file you want to import and select the format (CSV, JSON, or XML).
- Click "Import" to begin the import process. Export
Export
- Select the objects you want to export (or select all).
- 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5358413d6fb05cc0091ad55150fadf24d3953d589655616ff4a72ffa4d7ca063
|
|
| MD5 |
acd5b7571c21237d82bec72ba7cc5702
|
|
| BLAKE2b-256 |
5a4073ec575d3fed020615091dcfa40deb6b6c4d36a49bf199d921db4cb1370f
|
File details
Details for the file django_admin_bulk_io-1.3-py3-none-any.whl.
File metadata
- Download URL: django_admin_bulk_io-1.3-py3-none-any.whl
- Upload date:
- Size: 124.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7395710f92849d53f8826562b3413e409309ba780fa9949007d04c63bee83127
|
|
| MD5 |
150ba8bd44df8fad51e05aa9634de5af
|
|
| BLAKE2b-256 |
1943bc76829a98d5606a0aa4a0f6f12533d1db54a091707143453dd5134212f5
|