Giter Site home page Giter Site logo

stimfarmer / django-dropzone-upload Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sigurdga/django-dropzone-upload

0.0 1.0 0.0 213 KB

Minimal example project for integrating Dropzone.js with Django

License: MIT License

Python 7.04% CSS 15.40% JavaScript 77.56%

django-dropzone-upload's Introduction

Django dropzone upload

Example project for integrating Dropzone.js with Django.

Introduction

Dropzone.js by Matias Meno is a javascript library for drag and drop file uploading. It is very light and simple to configure and extend. This example uses ImageField, but you can easily change that to using FileField instead.

I have earlier created django-jquery-file-upload, which integrates jquery-file-upload by Sebastian Tschan with Django. That project has a lot of functionality and tries to be a complete package of all you need. It also works on older browsers.

Django-dropzone-upload tries to be as minimal and simple to understand as possible, as it should be fairly easy to with Dropzone.js functionality.

Howto

We assume you have git, python and python-virtualenv already installed.

  • Clone this repository: git clone https://github.com/sigurdga/django-dropzone-upload.git
  • Change directory: cd django-dropzone-upload
  • Create virtualenv: virtualenv venv
  • Activate virtualenv: source venv/bin/activate
  • Install dependencies into virtualenv: pip install -r requirements.txt
  • Setup database: python manage.py syncdb
  • Run development server: python manage.py runserver
  • Open browser at localhost:8000

Limitations

Dropzone.js claims to work for modern browsers:

  • Chrome 7+
  • Firefox 4+
  • IE 10+
  • Opera 12+ (Version 12 for MacOS is disabled because their API is buggy)
  • Safari 6+

Django-dropzone-upload does not try to do anything more than Dropzone in its simplest form, so no delete, no listing of already uploaded, etc. in this project.

Credits

License

Released under the MIT license

django-dropzone-upload's People

Contributors

sigurdga avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.