This a sample of upload with
- Flask -> http://flask.pocoo.org/docs/0.10/
- JQuery File Upload -> https://github.com/blueimp/jQuery-File-Upload
- JavaScript Load Image -> https://github.com/blueimp/JavaScript-Load-Image
- Bootstrap 3 -> http://getbootstrap.com/
- MySQL
Be free to make sugestions and comment.
- Download the project.
- Activate virtualenv:
source ~/flask-jquery-fileupload/venv/bin/activate
- Install requirements.txt (just to be sure):
pip install requirements.txt
- Create schema in MySQL called dev-jquery-fileupload (or just configure in project as you wish)
- Init database:
~/flask-jquery-fileupload/manage.py db init
- Migrate:
~/flask-jquery-fileupload/manage.py db migrate
- Run server:
~/flask-jquery-fileupload/manage.py runserver