django-admin-async-upload
django-admin-async-upload is a django app to allow you to upload large files from within the django admin site asynchrously (using ajax), that means that you can add any number of files on the admin page (e.g. through inline models) and continue editing other fields while files are uploading.
django-admin-async-file-uploads is compatible with django-storages (tested with S3Storage)
Screenshot
#TODO: update this screenshot
Installation
pip install django-admin-async-upload
Add admin_async_upload to your INSTALLED_APPS
Add url(r'^admin_async_upload/', include('admin_async_upload.urls')), to your urls.py
Add a model field eg: from admin_resumable.models import ResumableFileField
class Foo(models.Model):
bar = models.CharField(max_length=200)
foo = AsyncFileField()
Optionally:
Set ADMIN_RESUMABLE_CHUNKSIZE, default is "1*1024*1024"
Set ADMIN_RESUMABLE_STORAGE, default is setting of DEFAULT_FILE_STORAGE and ultimately 'django.core.files.storage.FileSystemStorage'. If you don’t want the default FileSystemStorage behaviour of creating new files on the server with filenames appended with _1, _2, etc for consecutive uploads of the same file, then you could use this to set your storage class to something like https://djangosnippets.org/snippets/976/
Set ADMIN_RESUMABLE_CHUNK_STORAGE, default is 'django.core.files.storage.FileSystemStorage' . If you don’t want the default FileSystemStorage behaviour of creating new files on the server with filenames appended with _1, _2, etc for consecutive uploads of the same file, then you could use this to set your storage class to something like https://djangosnippets.org/snippets/976/
Set ADMIN_RESUMABLE_SHOW_THUMB, default is False. Shows a thumbnail next to the “Currently:” link.
Set ADMIN_SIMULTANEOUS_UPLOADS to limit number of simulteneous uploads, dedaults to 3. If you have broken pipe issues in local development environment, set this value to 1.
Versions
Compatibility
Tested on Django 2.2 running on python 3.6 and 3.7
Thanks to
original django-admin-resumable-js by jonatron https://github.com/jonatron/django-admin-resumable-js
django-admin-resumable-js fork by roxel https://github.com/roxel/django-admin-resumable-js (django-admin-async-upload is based on this fork
Resumable.js https://github.com/23/resumable.js
django-resumable https://github.com/jeanphix/django-resumable
Metadata
Release files for django-admin-async-upload 3.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django-admin-async-upload-3.0.4.tar.gz | 6.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_admin_async_upload-3.0.4-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 29.4 kB
Release files / django-admin-async-upload-3.0.4.tar.gz
| Download URL | django-admin-async-upload-3.0.4.tar.gz |
|---|---|
| Size | 6.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4ad426b7ae141f4850c4d19d73b64c19631973c117deeec8922cd514a4b1e63f
|
|
BLAKE2b-256 checksum How to use checksums |
36ba8958184319f470b4826e566f689cc9cc2aaff8843d76d9b3f1771d97a9f0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.0.3 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.3
|
Release files / django_admin_async_upload-3.0.4-py2.py3-none-any.whl
| Download URL | django_admin_async_upload-3.0.4-py2.py3-none-any.whl |
|---|---|
| Size | 22.7 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
725888ca6e4b0731818a3280b9b65b5658b0fa4e82e863fdc79dc33a03201064
|
|
BLAKE2b-256 checksum How to use checksums |
da2404507048eaf6197fa0cd6ba5977eec7b954a8a70b3d2a89e40f43a5283bf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.0.3 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.3
|