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
File details
Details for the file django-io-0.1.0rc3.tar.gz
.
File metadata
- Download URL: django-io-0.1.0rc3.tar.gz
- Upload date:
- Size: 6.9 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 | c1d33b2f39231d5bf935590e499885b7890c9ae23767b6dd8ea639d692c404d0 |
|
MD5 | f838710d5b03f976f8346e029b4eb2ea |
|
BLAKE2b-256 | 0091dd05c80129feb45c9aaeba4caa410060e78ce74bf3b00a38f1c3283c6ad7 |
File details
Details for the file django_io-0.1.0rc3-py3-none-any.whl
.
File metadata
- Download URL: django_io-0.1.0rc3-py3-none-any.whl
- Upload date:
- Size: 7.6 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 | 110f9a3a1e3625772bf542bdef767df7d6aba7cf005c842ed693fd4092336854 |
|
MD5 | ee8e5c15de5a1630bc6896b94c6bc474 |
|
BLAKE2b-256 | b7e4c7e0ddc23462c9062f950d9ebc3902625872b61c5cec2f9727d32a8a6e8e |