Hey man was developing a multi vendor ecommerce and was stuck with uploading multiple images via forms this video just solved my problem also thanks alot man keep uploading and yeah you gained a sub : )
Hey buddy, I just want to give you credit for helping me so much, you are my inspiration. I have been working as a software developer for a big company here in the UK for 7 month now . but I have been following you for ages, and your videos make big different. Thank you so much.
I've said it before, and I'll say it again. Anything which you put out, I'm willing to purchase for if you place it behind a paywall because it's ALWAYS quality goods, so you deserve it.
Nice tutorial.But I wish to know how I can implement this functionality in django class based views.Also how can I update them when updating my model object.
Dealing with images is very important in learning django. I have a simple django application in which a random name is created for each uploaded image. It means all images should have unique names. Im planning to create an django app where users can upload images and making sure image names should not have similar names thats why i use this function to create a random name which consists of timezone.now() plus a random string from string module random_name = random.sample(string.ascii_uppercase, 10) In addition to that , i added another function to resize images The issue now is how to delete the images when the corresponding post is being deleted or updated. I know we should use the os.remove(filename) but how to do it and how to delete images if they are stoted in anothere server for instance. I hope Dennis will make a tutotial on this.
@dennis I have a question, what I have been observing is that if I want to upload a picture and I mistakenly put other files apart from images, It still uploaded to my site. My question is that how can I handle that, I mean to restrict any other files apart from image. I want only images with different format to be uploaded, any other file will be restricted! This is so far the most wonderful tutorial ever, it does help me alot, thank you very very much
Thank you for your effort boss. I develop LMS using Django. Now i need to do some performance testing. I think my system not fully optimized. because when we get data from the model, I always pass a full model to the frontend. Sometimes some models have 2, 3 foreign keys also. Then that related modals also load to our query variable. After reading some guides I found a lazy load method in Django. What method can I use for the optimization? And also is there any method to check the performance of our app? If you can do some videos about Django optimization and performance methods/tips and tricks That's very helpful for your followers. Anyway, Thank you for your effect. I learn a lot of things from you.
Thanks a lot, i deployed this project to heroku, but database not updating , temporary its deleting photo which i uploaded on local , but after some time again showing all pictures, cleared cache as well but same,
Pls I am working on a blog app, can you please show how to make image field not required if the user doesn't have an image, I tried creating different create options, one for ordinary posts and one for posts with image. Pls how I validate the form even of the image is not provided.thanks.
I wanted to know how to add multiple images in django for sooooo loooong ....... !!!! Thank you for telling me how it's done. But I didn't like the ui, how can I improve that?
Hey Dennis, I have a question about the name of the uploaded image. I can see that the images are being uploaded with their name from the host computer. What will happen if two people upload different image with same name. Does the second one replace the previous one? Or both will be kept. Could you please resolve it? I'm working on a project for my university where I want to handle images. So it'd be a great help
Is there any way we can select one or two image first then if we want add one more then again click on choose button and update number of select image let say at start I just select one then again click and select another now the choosen images show two files and send to backend , is it possible ?
Ok so, you have just done it on the client-side, but how will it work on the admin site? What if the admin also needs to upload multiple images from the admin site?
But you didn't make a change to models... Surely you have to make a separate models class and then put a foreign key... How else do you update the dbs? I'm definitely not getting something..
Check out the previous video for this project, it’s linked in the description. I first used the standard static file folder setup, then configured to a AWS S3 bucket
Thanks man! In my project I have a model called Image for uploading images using the ImageField and an Article model that has a ForeignKey field related to the Image model, so I wanna create an html form where I can see all the uploaded images and pick one to be the image of the article I wanna add. But, I want the image to be referenced by its id in the article I'm going be adding not by its url. I also wanna add the ability to not only choose from the uploaded images but to upload a new one. I guess the second thing is not hard to accomplish but the first one was difficult for me. If you can help me by making a video on this topic or just giving me some sources where I can learn to do this, I'd be so grateful for that^^
I figured out how to do that on my own but thanks also^^. The next thing I'm trying to do is that I have a ManyToManyField in the same Article model which refers to the Image model where I can upload the images, so how can I get to see all my uploaded images in my Article form and pick whatever number I want to submit it as the value of my ManyToManyFiled?
Yea that's an option, I didn't want to have to modify the existing project too much so this was an easier fix. There are a lot of different ways to do this tho :)
PLEASE DENNIS ADD AN UPDATE AND DELETE IN THESE PROJECT..ITS REALLY HARD I TRIED SO MUCH BUT ITS IMPOSSIBLE ADDING UPDATE AND DELETE FUNCTION IN THESE...PLEASE HELP DENNIS PLEASEEEEE!!!!!!
peace be upon you. believe in ALLAH (GOD) and the judgement day and do good deeds. don't show non well covered women picture that will be better for you in this life and the hereafter.
Don't forget to check out my Complete Django course! dub.sh/NvGboTI
And he is back again within 24 hours, anwering another puzzle. Thanks bruv..
I couldn't resist purchasing your course when i saw it. I knew it will be top notch....thanks for this again.
Thank you a lot Dennis , you answered and you did my request for uploading multiple images.
You are a great tutor.
😉
I was stuck with this multi-file upload issue for days. thanks man!
Within a few hours updated his app to answer to his viewers requests. Many kudos to Denis for listening to his viewers
You guys ask good logical questions :)
He answered my request , Dennis is a great tutor
Hey man was developing a multi vendor ecommerce and was stuck with uploading multiple images via forms this video just solved my problem also thanks alot man keep uploading and yeah you gained a sub : )
Hey buddy, I just want to give you credit for helping me so much, you are my inspiration. I have been working as a software developer for a big company here in the UK for 7 month now . but I have been following you for ages, and your videos make big different. Thank you so much.
This has been a major help. I did this in a way worse complicated way 2 years ago. Thanks man.. a big thanks.
I've said it before, and I'll say it again. Anything which you put out, I'm willing to purchase for if you place it behind a paywall because it's ALWAYS quality goods, so you deserve it.
Brother I appreciate the heck out of you! Thank you so much for being so supportive :)
Amazing video, thanks Dennis🔥
Have been searching around for this Thanks Man
Thank you so much it helped me a lot I was having trouble in multiple file upload. Thank you sooo mucchhhhh!!!!!!!!!!!!!!
Thanks Dennis , You save my life ..
I thought about that yesterday and now it is here :d Thanks
Nice tutorial.But I wish to know how I can implement this functionality in django class based views.Also how can I update them when updating my model object.
Thanks,
I need it in my upcoming project.
Ден, это просто клад!!! Спасибо тебе огромное за видос!!!
Could you make a video on how to add multiple Images in django admin? Also with ajax, example dropzone js?
I love your videos! I'm currently watching your Django series. Do you think you can make a video on celery?
Man you are the best
This is great! Next drag n drop?
Just learnt a new stuff from this video. Thanks a lot @Dennis
Thanks ❤️ I'm just getting to learning Django. This was really useful.
Dealing with images is very important in learning django.
I have a simple django application in which a random name is created for each uploaded image. It means all images should have unique names. Im planning to create an django app where users can upload images and making sure image names should not have similar names thats why i use this function to create a random name which consists of timezone.now() plus a random string from string module
random_name = random.sample(string.ascii_uppercase, 10)
In addition to that , i added another function to resize images
The issue now is how to delete the images when the corresponding post is being deleted or updated.
I know we should use the os.remove(filename) but how to do it and how to delete images if they are stoted in anothere server for instance.
I hope Dennis will make a tutotial on this.
But how I can get it done using modelForm ?
@dennis I have a question, what I have been observing is that if I want to upload a picture and I mistakenly put other files apart from images, It still uploaded to my site. My question is that how can I handle that, I mean to restrict any other files apart from image. I want only images with different format to be uploaded, any other file will be restricted!
This is so far the most wonderful tutorial ever, it does help me alot, thank you very very much
hi dennis good to see y ,thanku for video
I couldn't find your previous video.Could please help me to find out that video plzzzz.
Just what I was looking for
Thanks Dennis.
Thank you, excellent explanation
Im trying this type of input, but the object holding the getlist content still shwoing only 1 object when i choose multiple images.
Thank you for your effort boss. I develop LMS using Django. Now i need to do some performance testing. I think my system not fully optimized. because when we get data from the model, I always pass a full model to the frontend. Sometimes some models have 2, 3 foreign keys also. Then that related modals also load to our query variable.
After reading some guides I found a lazy load method in Django.
What method can I use for the optimization? And also is there any method to check the performance of our app?
If you can do some videos about Django optimization and performance methods/tips and tricks That's very helpful for your followers.
Anyway, Thank you for your effect. I learn a lot of things from you.
thanks Dennis !
E-commerce course is the same as Traversy Media except the database solution ?
Nice tutorial
Thank you for this project !!
Thanks man! Is it possible to do this using django forms?
Do you have beginner django course??
Can you do something like subcategories for the categories???
Hey,
Which plugins is beautifying the code with different colors for keywords
The VS Code theme is called "One Dark Pro"
I am creating a page where photographer can advertise their work, so how can I enable each photographer to have personal Gallery? Please I need help
First view awesome content sir
Is there a maximum number of photos that can be uploaded before problems start to occur?
Thanks a lot, i deployed this project to heroku, but database not updating , temporary its deleting photo which i uploaded on local , but after some time again showing all pictures, cleared cache as well but same,
Great Job! 😀
Thank you! Cheers!
hey Dennis! i wanna know if its possible to make a bug tracker using the django platform. If possible that'll be a cool project to work on.
Pls I am working on a blog app, can you please show how to make image field not required if the user doesn't have an image, I tried creating different create options, one for ordinary posts and one for posts with image. Pls how I validate the form even of the image is not provided.thanks.
superb sir
hy dennis, can you please make quick tutorial about email authentication without create an account to login website ?
I wanted to know how to add multiple images in django for sooooo loooong ....... !!!!
Thank you for telling me how it's done.
But I didn't like the ui, how can I improve that?
Hey Dennis, I have a question about the name of the uploaded image.
I can see that the images are being uploaded with their name from the host computer.
What will happen if two people upload different image with same name.
Does the second one replace the previous one? Or both will be kept.
Could you please resolve it? I'm working on a project for my university where I want to handle images. So it'd be a great help
Hello sir, can you make a Multi-Language website in Django. No one explains how to build multiple language websites in django.
Is there any way we can select one or two image first then if we want add one more then again click on choose button and update number of select image let say at start I just select one then again click and select another now the choosen images show two files and send to backend , is it possible ?
Hey Dennis,
Can you Explain WebRTC Video Chat on Django
Ok so, you have just done it on the client-side, but how will it work on the admin site? What if the admin also needs to upload multiple images from the admin site?
did you get this to work on the admin side?
Can you make a video on recommender engine ?
But you didn't make a change to models... Surely you have to make a separate models class and then put a foreign key... How else do you update the dbs? I'm definitely not getting something..
same here
How to do this using django forms
Hey dennis, do you know how to upload image to django backend through javascript(fetch/ajax)?
Yes, in my Django + React course on udemy we do this with axios. Fetch also makes it easy.
how do upload multiple image in django admin?
drag and drop is possible?
Hello, excuse my ignorance, where are you storing the images?
Check out the previous video for this project, it’s linked in the description. I first used the standard static file folder setup, then configured to a AWS S3 bucket
@@DennisIvy Thank you very much, I already subscribed to the channel, good content
Does it work if I want to upload 300 images at a time? And their size is 500 Mt in total? Or does it give error?
Thank you so much
possible to download image?
plzz do one with django and react
"'list' object has no attribute 'get'"
:(
Awesome 👍😎
Thankx bro
That's great 🙂
Thanks man!
In my project I have a model called Image for uploading images using the ImageField and an Article model that has a ForeignKey field related to the Image model, so I wanna create an html form where I can see all the uploaded images and pick one to be the image of the article I wanna add. But, I want the image to be referenced by its id in the article I'm going be adding not by its url. I also wanna add the ability to not only choose from the uploaded images but to upload a new one. I guess the second thing is not hard to accomplish but the first one was difficult for me. If you can help me by making a video on this topic or just giving me some sources where I can learn to do this, I'd be so grateful for that^^
I figured out how to do that on my own but thanks also^^. The next thing I'm trying to do is that I have a ManyToManyField in the same Article model which refers to the Image model where I can upload the images, so how can I get to see all my uploaded images in my Article form and pick whatever number I want to submit it as the value of my ManyToManyFiled?
I solved it on my own, but also thanks so much because I've learnt a lot from you.
I've never clicked that fast...
what about a formset?
Yea that's an option, I didn't want to have to modify the existing project too much so this was an easier fix. There are a lot of different ways to do this tho :)
tutorial is advanced for me... but i like it anyway
PLEASE DENNIS ADD AN UPDATE AND DELETE IN THESE PROJECT..ITS REALLY HARD I TRIED SO MUCH BUT ITS IMPOSSIBLE ADDING UPDATE AND DELETE FUNCTION IN THESE...PLEASE HELP DENNIS PLEASEEEEE!!!!!!
Bro you won't believe my dark theme is exactly like yours. On vscode, pc theme and chrome theme 😃
😁😁😁
Dennis, que pollerudo sos hermano, pero buen vídeo.
pollerudo?
Google translate tells me that means "wimp". I guess if you say so..
@@DennisIvy no near, but its just a stupid joke. I am state tuned for more content!
bro you german?
peace be upon you.
believe in ALLAH (GOD) and the judgement day and do good deeds.
don't show non well covered women picture that will be better for you in this life and the hereafter.
Thank you so much