Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Django project that offers direct uploading of files from your forms using Uploadify
JavaScript Python
branch: master
Failed to load latest commit information.
directupload Merge branch 'master' of github.com:cuker/django-directupload
setuptests updated readme to include s3 install instructions
.gitignore
.travis.yml updated travis to install requirements
LICENSE initial commit of django-uploadify
MANIFEST.in fix packaging of static media
README.rst added deprecated message
requirements.txt test is_file_field template tag
setup.py updated readme to include s3 install instructions
tox.ini test is_file_field template tag

README.rst

https://secure.travis-ci.org/cuker/django-directupload.png?branch=master

This is deprecated due to the difficulty of integrating reliably with the Django admin.

django-directupload is a Django application that offers direct uploading of files from your forms using jQuery-file-upload.

Requirements

  • Python 2.6 or later
  • Django 1.3 or later
  • django-classy-tags

Installation

  1. Ensure directupload is in your python path
  2. Add the following line to your url patterns: (r'^directupload/', include('directupload.urls'))
  3. Add directupload to your INSTALLED_APPS
  4. Insert the following into the head of your admin/change_form.html template: {% load directupload_tags %}{% directupload_head %}
  5. Call directupload.admin.patch_admin to monkey patht the admin, this should be done before the admin.autodiscover is called

Installing S3 Support

To enable directuploads to your S3 bucket, set up the following in your settings:

AWS_ACCESS_KEY_ID = 'accesskey'
AWS_SECRET_ACCESS_KEY = 'secretkey'
AWS_BUCKET_NAME = 'mybucket'
UPLOADIFY_BACKEND = 'directupload.backends.s3.S3UploadifyBackend'

Features

  • Utilizes jQuery-file-upload: http://blueimp.github.com/jQuery-File-Upload/
  • Direct uploading backends, currently supports an internal django view or S3
  • Admin integration via monkey patch or mixin
  • Provides a widget class for integration with your django forms
  • Prevents users from uploading over existing files using the desired name fetched from the storage backend
Something went wrong with that request. Please try again.