Giter Club home page Giter Club logo

django-jquery-file-upload's Introduction

jQuery-File-Upload is developed by Sebastian Tschan, with the source available on github. Example code is ported to Django by Sigurd Gartmann (sigurdga on github).

Introduction

This is a small example on how to setup Sebastian Tschan's jQuery File Upload in Django. He has a working demo on his webpage and a github repository with an example on how to do it in PHP.

Here, you'll find a minimal Django project with a minimal app. You can run the example standalone by cloning the repository, running the migrations and starting the server.

I want to give a thank to Sebastian Tschan, the original author, Etay Cohen-Solal, for the latest major update, and Jørgen Bergquist for helping me over the first hurdles.

Features

  • Drag and drop files
  • Select multiple files
  • Cancel upload
  • Delete uploaded file (from database only)
  • No flash (or other browser plugins) needed
  • … more at the upstream's features page

Requirements

  • Django
  • Python Imaging Library

If you do not get PIL to work (pillow is a replacement package that works with virtulalenvs), use FileField instead of ImageField in fileupload/models.py as commented in the file.

Installation

I recommend to install this within a virtualenv.

virtualenv -p python3 venv
source venv/bin/activate
pip install -r requirements.txt
./manage.py migrate
./manage.py runserver

And then go to localhost:8000 and try to upload some files.

License

MIT, as the original project. See LICENSE.txt.

django-jquery-file-upload's People

Contributors

dolgiyspb avatar et-cs avatar ikonitas avatar sigurdga 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.