-
Upload a single file using drag-drop or select on the browser.
-
Uploaded file is copied under media folder under your project.
-
Pull the code
-
Execute following
virtualenv venv
source venv/bin/activate
pip install -r requirements.txt
npm init
npm install
webpack --hot --inline
python manage.py runserver
-
On browser click on the box to upload a picture a file. The selected file is uploaded under /media folder of the django-application.
-
The file will be saved as 'xxx.txt'. If you want to maintain the name of the original file replace:
file.append('name', files[0], 'xxx.txt')
with
file.append('name', files[0])