Introduction - Django File Upload Tutorial - Part 1

Поділитися
Вставка
  • Опубліковано 15 вер 2024

КОМЕНТАРІ • 213

  • @CrafterLuke
    @CrafterLuke 5 років тому +3

    Vitor, I coded for years, read thousands of blogs, and have just one thing to say.
    You truly are a god among men, your ability to communicate advanced topics in such a simple manner is unmatched and you have very much owned the title of your blog/website.
    Fellow mortals, worship your overlord by liking this comment.

  • @sizu257
    @sizu257 2 роки тому +1

    After 3 days of grinding the internet for an answer to my problem, you just gave it to me in a few minutes. Thank you very much, I subscribe!

  • @Mydad-et1el
    @Mydad-et1el 4 роки тому +13

    Hey Victor, just discovered you today to find out how to upload file. Great tutorial, very helpful. What I like about your teaching style is the upfront theory. It helps build a mental model of how the steps piece together. Thank you and keep up the good work!

  • @muhammadsaadkhan4992
    @muhammadsaadkhan4992 3 роки тому

    You are my Life Saver , Respect from Pakistan

  • @mladenmilosavljevic6449
    @mladenmilosavljevic6449 4 роки тому +2

    I was reading your blog from time to time while i was learning Django, Im happy that you have chanel also, your contribution to django comunity and students is awesome! Ty.

  • @switluvsangel
    @switluvsangel 3 роки тому

    you are a teacher of the 21st century, cool and calm way of teaching. Nice job
    .

  • @samuelf7592
    @samuelf7592 5 років тому +7

    Thank you Vitor, your tutorials have helped me to grow in Django more so your way of teaching is amazing Thank you

  • @KiranGhanta
    @KiranGhanta 4 роки тому +1

    Thank you for detailed explanation. It helped a lot in understanding the basics of Django File Upload. The special mention of Media URL from the settings.py really stands out. Keep the same kind of special mentions in the future videos as well. They will help someone out there.

  • @ВасилийЗорин-з2в

    Sooooooo thank you! Exactly what I needed and exactly as detailed as i needed.

  • @GauravKumar-xv5rp
    @GauravKumar-xv5rp 3 роки тому

    Thanks, This basic tutorial solve one of my major problems during web-based application development.

  • @sumitkawale9878
    @sumitkawale9878 3 роки тому

    you just don't know, that How much your video helped me😍
    firstly.. thankyou sir for this video... this video helped me so much❤❤
    ThankYou so much sir..

  • @Gigolas88
    @Gigolas88 5 років тому +2

    if request.method == 'POST' and request.FILES['myfile']:
    This line should be:
    if request.method == 'POST' and request.FILES.get('myfile', False):
    Otherwise one might encounter the MultiValueDictKeyError later. Found it on Vitor's blog. Props to Riverman!

    • @paulocarsten9216
      @paulocarsten9216 4 роки тому

      Thank you Sir, (y)

    • @rohitsomani924
      @rohitsomani924 3 роки тому

      I actually encountered the error. I updated the code to request.FILES.get('myfiles,False). However now I am getting another error.

    • @rohitsomani924
      @rohitsomani924 3 роки тому

      This is my error - 'bool' object has no attribute 'name'
      My code is below -
      def upload(request):
      if request.method == 'POST':
      uploaded_file = request.FILES.get('document',False)
      fs = FileSystemStorage()
      fs.save(uploaded_file.name,uploaded_file)
      return render(request,'merge_ops/merge_ops.html')

  • @mohanarangam_nature
    @mohanarangam_nature 5 років тому +9

    Great Vitor, Your Django blog helped me lot. Thank you.

  • @himanshusuthar7158
    @himanshusuthar7158 5 років тому

    This is my first tutorial in Django. Thanks for making things a little bit easier. I am just new to web development and copied your code for front end.

  • @jackmintt
    @jackmintt 4 роки тому

    Excellent. I have learned so much Django from you! From your videos and website.

  • @mehwishroohan253
    @mehwishroohan253 3 роки тому

    Your way of teaching is amazing, continue the same way

  • @mohiniupasani5691
    @mohiniupasani5691 4 роки тому

    you explain too good , I am just a beginner and your lectures is helping me to elevate my interest in learning django

  • @endorfineater
    @endorfineater 2 роки тому

    Fan of your Website. Glad to reach you here

  • @uadsonfeitosa748
    @uadsonfeitosa748 2 роки тому

    I've been following your videos recently and the site's tutorials have helped me a lot in some projects... Very high quality content.

  • @kaustavsengupta8757
    @kaustavsengupta8757 5 років тому +14

    Victor just one thing can you make django videos targeting intermediate level. Example when to use AbstractUser vs abstractsBaseUser. And how to use database fixture and how to load too because django documents only teaches how to implement (coding stuff) but it don't say anything about when should you use it( when to use it in real life situations).

    • @vitorfs
      @vitorfs  5 років тому +5

      thanks for the great suggestion! I'll work on it for the future videos :-)

  • @striking_village
    @striking_village 3 роки тому

    😍 finally some one here to explain django with flow chart really sir thank you so much ..

  • @neotank874
    @neotank874 2 роки тому

    I read your articles Vitor. You are amazing!

  • @tahsinhawa1769
    @tahsinhawa1769 4 роки тому

    Your videos are superb. Theu are really helpful. Please do continue with Django

  • @azharpatel7364
    @azharpatel7364 4 роки тому

    Great Video - Simplicity is the ultimate sophistication

  • @jaecheokkim99
    @jaecheokkim99 4 роки тому

    Thank you Vitor. It's really good to understand how django file works! I really appreciate it!

  • @thegaribovv
    @thegaribovv 3 роки тому

    Explanation with diagram was very good

  • @DanielLee-et4sk
    @DanielLee-et4sk 4 роки тому

    Best tutorial on file upload for Django, Thanks!

  • @anirudhsrivastava5011
    @anirudhsrivastava5011 3 роки тому +3

    Money Heist Professor teaches coding too!

  • @iFunktion
    @iFunktion 4 роки тому

    The way you explain stuff is so simple to get. Hope you carry on with more vids.

  • @swamy4494
    @swamy4494 4 роки тому

    your teaching is very professional.tqq so much for sharing your knowledge.

  • @systemsdeveloper8888
    @systemsdeveloper8888 Рік тому

    super super easy and smooth explaining, and super like for you. then thanks to much

  • @matang1094
    @matang1094 4 роки тому

    I'll start by saying I'm very thankful for Your videos. This toturial series has helped me through my college project concerning dynamic web design and development. It's very efficient and extremely helpful and easy to understand even for a begginer like me. I had tons of fun learning this framework. Well done sir and thanks :)

  • @samirboro1493
    @samirboro1493 3 роки тому

    Great Thank to you sir. I was looking for this solution from long time and finally I got this. love from 2021 new year.....

  • @unluckydude8882
    @unluckydude8882 Рік тому

    thank you so much now i can finish my project

  • @arnoldcoto2065
    @arnoldcoto2065 3 роки тому

    Great quality video, Your explain are awesome, congratulations.

  • @khadimhusen
    @khadimhusen 5 років тому

    This tutorial clear my concept. Very deeply explained. Please upload more tutorial like this.

  • @aakashthorve6428
    @aakashthorve6428 Рік тому

    My django teacher is big fan of yours

  • @yadneshsalvi4364
    @yadneshsalvi4364 5 років тому

    Vitor you rock!
    First simple is better than complex and now this amazing series on file upload. Thank you :)

    • @jackpaperhands
      @jackpaperhands 5 років тому

      hey man, do you have any idea why the base.html on github does not match the one in the video

  • @aungzinpyae8606
    @aungzinpyae8606 4 роки тому

    The Best Django tutorial ! Thank you for the videos!

  • @excaliburhead
    @excaliburhead 4 роки тому +1

    Thank you so much. I was missing the enctype="multipart/form-data from my form, and that was all. It is an absolutely necessary piece, apparently. I had read through the documentation but somehow I kept overlooking that detail.

  • @harperjmusic
    @harperjmusic 5 років тому +2

    This is a fantastic video - very straightforward, thank you. The only thing I would have liked is if you included how to have the image appear on the same page, although its not too difficult a task.

  • @mclovin816
    @mclovin816 4 роки тому

    Great video helped me a lot with my project

  • @user-ml5ko3fv8m
    @user-ml5ko3fv8m 2 роки тому

    Thank you a lot, Vitor!
    That was a nice tutorial on difficult subject.
    You're realy good at explaining stuff.

  • @flamingflamingo4021
    @flamingflamingo4021 4 роки тому

    Simple and easy to understand. Great tutorial.

  • @dubey_ji
    @dubey_ji 4 роки тому

    thank you so much sir thank you so much for making these videos and writing blog posts

  • @rangabharath4253
    @rangabharath4253 4 роки тому

    Awesome as always. Please continue tutorials on django with advanced concepts.

  • @EliasPaiFilho
    @EliasPaiFilho 5 років тому

    Great Vitor!
    I've been following your blog for a long time!
    I want to tell you that your posts are objective, that is, straightforward.
    I want to suggest two things:
    1 - inlineformset_factory outside admin.
    2 - Generate reports in pdf.
    3 - Import and export in excel.
    I have more suggestions but I think it would be abuse heheheh.
    Hug.

  • @akshaykathpal
    @akshaykathpal 5 років тому +3

    Please make some videos on the authentication and authorization for django. It's so confusing and the proxy models for the user login. Your docs are great on that topics. Hoping for the video for the same. Thank you

    • @vitorfs
      @vitorfs  5 років тому +5

      Check this playlist on Django authentication I published last week: ua-cam.com/video/60GTvKCuam8/v-deo.html

  • @leonardodonascimento1858
    @leonardodonascimento1858 4 роки тому +1

    Parabéns Vitor! ótimo vídeo

  • @madmak_41
    @madmak_41 5 років тому +2

    Would be good to see a tutorial for setting up a payment method for a site, using a credit card. Basically, how to send requests to some service/bank and how to accept a service reply for succesfull payment.

  • @camiloninguem495
    @camiloninguem495 2 роки тому

    Thanks U from south america, hugs

  • @illiayershov977
    @illiayershov977 2 роки тому

    Goddamit, this guide is so good and detailed, thank you so much

  • @lokeshkatikireddi1924
    @lokeshkatikireddi1924 4 роки тому

    Hi.. your videos are really valuable. Good work.

  • @algerchenlavernkordom3151
    @algerchenlavernkordom3151 4 роки тому

    Awesome thorough explanation of concepts and implementation. Good job.

  • @fernandoabreu1305
    @fernandoabreu1305 3 роки тому

    Hey, Vitor thank you so much for this tutorial! It was really helpful! And the way you teach is very easy to follow!

  • @subhankarmajumder4335
    @subhankarmajumder4335 4 роки тому

    Thank You very much. I found my primary solution here.

  • @dmitriykuznetsov4464
    @dmitriykuznetsov4464 4 роки тому

    Thank you very much sir! Very nice explaining manner. Helped a lot.

  • @oscaraguilar9122
    @oscaraguilar9122 2 роки тому

    You are really, really good!, thanks!!!!, you save me!

  • @keremvatandas
    @keremvatandas 5 років тому

    Thank you Vitor, your tutorials are fantastic.

  • @cormacio100
    @cormacio100 2 роки тому

    Very good tutorial. Thanks Vitor

  • @rbmdesenvolvimento
    @rbmdesenvolvimento 3 роки тому +2

    Aula excelente! Parabéns!

  • @regular67
    @regular67 3 місяці тому

    Thank you for this tutorial!

  • @naomij011
    @naomij011 3 роки тому

    the best tutorial !

  • @neatpolygons8500
    @neatpolygons8500 4 роки тому

    Your videos are awesome, I came from your website and I like how to make exactly the tutorials I want. :)

  • @TheSoftwareServices
    @TheSoftwareServices 4 роки тому

    Thank you very much sir, This helped me alot. may god bless you all the way.

  • @UpscaleHD
    @UpscaleHD 4 роки тому

    vlw mano! sempre acompanho seu site e tem me ajudado muito.

  • @hamedmolaei
    @hamedmolaei 3 роки тому

    Than you man, it was very helpful

  • @DanielLeachTen
    @DanielLeachTen 2 роки тому

    Great video, thanks so much!

  • @josephjeanclaude123
    @josephjeanclaude123 3 роки тому

    Thank you Vitor,
    That's very good

  • @manishasingh5293
    @manishasingh5293 3 роки тому

    nice explanation. Impressed

  • @andrewko22
    @andrewko22 5 років тому +8

    Nice, good job! let's continue at the same way. What about uploading to the cloud like Google Drive?

  • @matthewbillman4485
    @matthewbillman4485 4 роки тому

    This rocks. Really well done. Thank you!

  • @aakashshetty1999
    @aakashshetty1999 4 роки тому

    Amazing Tutorial. Thanks a lot Victor..

  • @origindevelopdev18
    @origindevelopdev18 4 роки тому

    it was realy helpful. thank you.

  • @marlon.garcia
    @marlon.garcia 5 років тому

    Thank you Vitor! Your videos also help me a lot!

  • @mdahanaf
    @mdahanaf 5 років тому

    So many Thanks For. Very helpful tutorial.

  • @jackagolli5305
    @jackagolli5305 4 роки тому

    This was very helpful. Thank you.

  • @minhthongnguyen6254
    @minhthongnguyen6254 4 роки тому

    Very very helpful, helped me lot. Thank you.

  • @AP-eh6gr
    @AP-eh6gr 4 роки тому

    This helped me a lot. Thank you

  • @bostamusicbrazil
    @bostamusicbrazil 3 роки тому

    Fantastic! I'm your fan! Thanks a lot! E eu sei que é brasileiro kkkk! Valeu irmão, me ajudou muito!

  • @tajrianbintajahid7561
    @tajrianbintajahid7561 3 роки тому +1

    Wow !

  • @ValenteFV
    @ValenteFV 4 роки тому

    nice to meet you Victor

  • @magnoslima2314
    @magnoslima2314 5 років тому

    Saudações do Brasil! ótimo tutorial, parabéns!

  • @damiengravelle4741
    @damiengravelle4741 3 роки тому

    thank you, good explainations

  • @daniel_caron
    @daniel_caron 5 років тому +2

    Would love to see some tutorials on vue.js and django rest framework!

    • @Skaxarrat
      @Skaxarrat 5 років тому

      I'm learning Vue right now, so +1 for Vue + DRF

  • @GeoffTaucer
    @GeoffTaucer 2 роки тому

    Question:
    I'm working on a project in which I take a txt file uploaded by a user and need to convert it to a string for further processing. I've got the upload form, I've got the further processing, but how do I convert that uploaded txt to a string?

  • @jannie391
    @jannie391 5 років тому

    I have an error said expected str, bytes or os.PathLike object, not tuple
    and I notice the file class was the InMemoryUploadedFile which the model couldn't deal with

  • @cristianogasparoli7168
    @cristianogasparoli7168 4 роки тому

    Very good, very clear!

  • @ezankacou8616
    @ezankacou8616 5 років тому

    Very helpful stuff. Thank You!

  • @Cubas1111
    @Cubas1111 Рік тому

    Thank you I'll have dinner tonight!

  • @stanleyjohn4670
    @stanleyjohn4670 5 років тому +1

    How can we rename the file once it's uploaded? Example, if a user uploads a 'apple.jpg' image, I want to convert that to a png format and label it differently eg: 'apple.jpg' ------- after upload and submitted ----- directory should contain: '1212019.png'. How can I do this?

  • @maamounhajnajeeb209
    @maamounhajnajeeb209 11 місяців тому

    thank you very much vitor

  • @jongwuchoi
    @jongwuchoi 4 роки тому

    I don't know why 'request.FILES ['image'] doesn't work. it gives MultiValueDicKeyError. some stackoverflow adivse I should use 'request.FILES.get('image') but it doesn' work either. Please help!!

  • @ahmedelmawrdy4381
    @ahmedelmawrdy4381 3 роки тому

    it is really awesome thanks a lot

  • @techworldbasics9268
    @techworldbasics9268 4 роки тому

    Thank you very much. It helped me.

  • @igorbezerra7020
    @igorbezerra7020 3 роки тому

    Obrigado pelo seu vídeo, me ajudou bastante

  • @pysandeep
    @pysandeep 5 років тому

    Please create playlist on this topics. "How to Implement Multiple User Types with Django" and " Custom authentication"

  • @MiguelDuffy
    @MiguelDuffy 3 роки тому

    Thanks Vitor!

  • @DemaDergan
    @DemaDergan 2 роки тому

    Thaks o lot for the lesson!

  • @prabeshguragain4463
    @prabeshguragain4463 4 роки тому

    Helped me a lot. Thank you