Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to upload an image in django web application? [closed]

I need to ask the user to upload an image on a django web app but i don't know how to start and what to write in views.py or models.py or settings.py I searched for answers but didn't get full or step-wise answer to this (I am new to django) I have given MEDIA_ROOT and MEDIA_URL in the settings.py but need help in further implementation

like image 963
crucifix94 Avatar asked Oct 03 '22 18:10

crucifix94


1 Answers

Download https://github.com/doph/minimal-django-file-upload-example, as suggested here: Need a minimal Django file upload example

it's a basic Django project with single app using media/ directory for uploads.

like image 102
furins Avatar answered Oct 07 '22 17:10

furins