Skip to content

fabfacts/django-jquery-file-upload

 
 

Repository files navigation

Disclaimer

This project is a fork

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

  • pip install -r requirements.txt (will install django and pillow)
  • python manage.py syncdb
  • python manage.py runserver
  • go to localhost:8000/upload/new/ and upload some files

Developing with docker

$ docker run -ti --name uploaderdevel -p 8000:8000 -v /workdir/django_uploader:/devel python:2.7.18 bash
$ pip install -r requirements.txt
$ export DJANGO_SETTINGS_MODULE=settings_dev
$ python manage.py runserver 0.0.0.0:8000 

Database migrations

From existing DB $ python manage.py schemamigration fileupload --initial $ python manage.py migrate --fake

Generate migration and apply $ python manage.py schemamigration fileupload --auto $ python manage.py migrate fileupload

License

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

About

A minimal django project containing a minimal app with a working jquery file upload form based on the work by Sebastian Tschan: http://aquantum-demo.appspot.com/file-upload

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 40.7%
  • JavaScript 37.5%
  • HTML 12.8%
  • CSS 9.0%