Importing and exporting of data, and other file operations for Django apps
Project description
Django I/O
Importing and exporting of data, and other file operations for Django apps
Quick start
pip install django-io
Add django_io to INSTALLED_APPS
INSTALLED_APPS = [
...,
'django_io',
]
Create a form to upload your data and save it, and the view to show the form. In the admin panel for the model you are importing:
@admin.register(SomeModel)
class SomeModelAdmin(
DataImportableAdmin,
admin.ModelAdmin
):
upload_url = reverse_lazy('app:model:upload') # path to the view
Development and Testing
IDE Setup
Add the example directory to the PYTHONPATH in your IDE to avoid seeing import warnings in the tests modules. If
you are using PyCharm, this is already set up.
Running the Tests
Install requirements
pip install -r requirements.txt
For local environment
pytest
For all supported environments
tox
Project details
Release history Release notifications | RSS feed
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-io-0.1.0.tar.gz.
File metadata
- Download URL: django-io-0.1.0.tar.gz
- Upload date:
- Size: 6.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ddd6242e3e4da9ce6c0ccda1eb67e5e835d302beeed81046c62e1f24f972afb5
|
|
| MD5 |
3d510a1a9c383650f106fcebf8da8261
|
|
| BLAKE2b-256 |
ea2fd009c5bf2c032d1a92f3694f1a2e005f612a05ec554523c59705509747aa
|
File details
Details for the file django_io-0.1.0-py3-none-any.whl.
File metadata
- Download URL: django_io-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3a86e7ee357e5ddc62962e937eaf6d4153ce746184885eeb49f66a5f8ac243d2
|
|
| MD5 |
a4506763cf73989161b06c1441889cd1
|
|
| BLAKE2b-256 |
6e1f8afb807856e5546b88bc205bd6f09354be3c9e950f129779fd3bea3205b2
|