How to upload and download files in Django

preview_player
Показать описание
In this video we will be learning how to create a website using Django where the admin of the website can upload the file and the users of that website download that same file. I'll explain the full procedure by how to do that , from creating a fresh Django project to the end where I'll show you with an example . I'll upload the file as an admin and download that same uploaded file as a user of that website. So, follow me up to the end of this video.

How to create a website using Django where admin can upload the file and users can download the file?
How can an Admin Upload the file in Django?
How can a User download the file in Django?

#Django
#FileUploadAndDownload
#AdminUpload

Naveen Kumar
Рекомендации по теме
Комментарии
Автор

hey Naveen,
thanks for tutorial, will i bit confuse in ur view.py how do u access [ os.path.join(settings.MEDIA_ROOT, path) ]?

csay
Автор

I have done exactly the same but it is showing "no module named blog" . Plz help me

Vaibhavbajpai
Автор

Hello Navin!
I had a doubt. Can you help me out?

rajeevkaviskar
Автор

Is it possible to create a download button inside the admin panel rather than on another page?

rajeevkaviskar
Автор

hey am downloading a html file, , , , what might be the issue

mutukukyenze
Автор

May u know sir why u selected content type as application/adminupload

sumitKumar-pfxo
Автор

How can we play video live on the site

zimpumsimpum
Автор

Very helpful video.... Thanks for video..
I don't want to upload file using django administration page.
I have 'choose file' and 'upload' button on my UI and this uploaded file I have to download.

What should I change in your logic....?

atulpunde
Автор

Hii... will you help me about how to upload json file while downloading it will convert into excel

farukhbasle
Автор

why did you define a download view if you are serving the files with built-in serve view...?

agzapiola
Автор

hello, I am not able to see BLOG-->Files admin .please give me the solution

prajaktapawar
Автор

Hello, thanks for the tutorial I fellow the step one at a time but the end product I am an empty file when I tried to download the file

andrewsmichael
Автор

Thank you So much Naveen .. It really help me to get something into productivity in quick time

tonyable
Автор

my download option is not working , can you help me to get this out

vinodkalwani
Автор

I am facing a error. failed to download-no file

rupalisirsat
Автор

Hallo, thanks for this video. Does this work in production mode?

gakuomuriuki
Автор

Using file uplaod I want to pass the file name as parameter into read_excel( ) in another python file

ajayyerra
Автор

do you use github?
if so can you share the code there?
tnx

lakshaynz
Автор

where is this written in documentation

minakshee
Автор

Hey Naveen, Bro I created a website that allows users to upload a zip file and other users can download the same. So can it be done using this or do I have to add something else.
Moreover, in the views home function I'll specify the template where I want the download link to be present, right? Bhai please help kardena.

cmplexeditz