Skip to main content

A Django app for the uploading of large files from the django admin site.

Project description

https://api.travis-ci.org/jonatron/django-admin-resumable-js.svg?branch=master

django-admin-resumable-js is a django app to allow you to upload large files from within the django admin site.

Screenshot

https://github.com/jonatron/django-admin-resumable-js/raw/master/screenshot.png?raw=true

Installation

  • Add admin_resumable to your INSTALLED_APPS

  • Add url(r'^admin_resumable/', include('admin_resumable.urls')), to your urls.py

  • Add a model field eg: from admin_resumable.fields import ModelAdminResumableFileField

class Foo(models.Model):
    bar = models.CharField(max_length=200)
    foo = ModelAdminResumableFileField()

Optionally:

  • Set ADMIN_RESUMABLE_SUBDIR, default is 'admin_uploaded'

  • Set ADMIN_RESUMABLE_CHUNKSIZE, default is "1*1024*1024"

  • Set ADMIN_RESUMABLE_STORAGE, default is 'django.core.files.storage.FileSystemStorage' (must be a subclass of django.core.files.storage.FileSystemStorage, or accept the location init parameter). 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.

South

If you use South for migration, then put this at the top of your models.py file to help South introspect your ModelAdminResumableFileField:

from south.modelsinspector import add_introspection_rules

add_introspection_rules([], [
    r'^admin_resumable\.fields\.ModelAdminResumableFileField'])

Compatibility

{py27,py32,py33,py34}-django{1.6,1.7,1.8}

Thanks to

Resumable.js https://github.com/23/resumable.js

django-resumable https://github.com/jeanphix/django-resumable

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-resumable-js-1.0.post2.tar.gz (13.3 kB view details)

Uploaded Source

File details

Details for the file django-admin-resumable-js-1.0.post2.tar.gz.

File metadata

File hashes

Hashes for django-admin-resumable-js-1.0.post2.tar.gz
Algorithm Hash digest
SHA256 5897b7d81d76e85a1da1a02acd57e20c66918c5713dd1291e9963e57ceb7547e
MD5 cfa03c29fe1de3291a0b6592bc2b40f6
BLAKE2b-256 bfc972fb0b2475b8dc3cfb6d659da0463d9ee0b9a388e5a2359a38132a0d21da

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