Upload multiple images to a post in Django (Simple Solution)

แชร์
ฝัง
  • เผยแพร่เมื่อ 17 ธ.ค. 2024

ความคิดเห็น • 78

  • @developertimeline
    @developertimeline  4 ปีที่แล้ว +5

    Devs! If you want to add multiple images from templates watch my new video: th-cam.com/video/VX6VLNeRvis/w-d-xo.html

    • @hackerdaddy2828
      @hackerdaddy2828 3 ปีที่แล้ว

      sir plz make video on image croping in django admin

  • @LIMLIMLIM111
    @LIMLIMLIM111 3 ปีที่แล้ว +6

    Literally the only video on the entire internet that properly explains how to deal with multiple images. Thank you!

  • @kicknotes
    @kicknotes ปีที่แล้ว

    Your speed is a definite indicator that you know what you're doing!

  • @DaNickKittu
    @DaNickKittu 4 ปีที่แล้ว +4

    Thanks a lot! There was really nothing on the internet addressing this problem nicely.

  • @mihir7332
    @mihir7332 4 ปีที่แล้ว +1

    The content was the best. I knew I was Subscribing the moment I was halfway through the video. Well done, can't Thank you enough.

    • @developertimeline
      @developertimeline  4 ปีที่แล้ว +1

      Thank you, your support means a lot to me, really happy to help✌🚀🤺

  • @blerdijankoliqi3994
    @blerdijankoliqi3994 3 ปีที่แล้ว +1

    Brother you have literally no idea how much you helped me lol. You saved my life with this tutorial 😂

  • @acidkhan4910
    @acidkhan4910 4 ปีที่แล้ว +6

    Please zoom in the editor in the next videos, so we can see clearly what's happening.

  • @muhammeduluel2913
    @muhammeduluel2913 2 ปีที่แล้ว

    thank you so much. I also like the way you shoot videos, so I don't miss anything. I do not have a question mark in my mind, not to mention that you speeded up such a long video. Appreciate you.

  • @SnowdarthStudios
    @SnowdarthStudios 4 ปีที่แล้ว

    Honestly, this is hands down the best tutorial to follow in this matter. Thanks a lot dude.

  • @Магомед-о1ю
    @Магомед-о1ю ปีที่แล้ว

    Здравствуйте.Подскажите пожалуйста,как сделать чтобы эти формы добавления картинок начинались не с 3, а с 1.

  • @nabilm791
    @nabilm791 4 ปีที่แล้ว +1

    i have problem if i create post from frontend the images dont saving

  • @soumyazyx
    @soumyazyx 4 ปีที่แล้ว +1

    Can't thank you enough! The video was right to the point, concise and clear. Loved it! Subscribed.

  • @TheMbahlol
    @TheMbahlol 3 ปีที่แล้ว

    Thanks for this tutorial, Can we do this without using admin page. I want to use in on custom form?

  • @berkgaffaroglu8614
    @berkgaffaroglu8614 4 ปีที่แล้ว

    You just deserved a like bro! Great job.

  • @ygcjayalal
    @ygcjayalal 4 ปีที่แล้ว

    @admin.register(PostImage)
    class PostImageAdmin(admin.ModelAdmin):
    pass
    this gives me an error. the error says class PostImageAdmin duplicated....

    • @silaVnorme
      @silaVnorme ปีที่แล้ว

      I have another problem
      AttributeError: type object 'ImageAdmin' has no attribute '_meta'

  • @ВіталійШушков-о6й
    @ВіталійШушков-о6й ปีที่แล้ว

    thank you. you helped a lot, I wanted to do exactly that, but half of the information tells how to do it through forms

  • @angelosnasser3321
    @angelosnasser3321 2 ปีที่แล้ว

    thank you my bro your tutorial helped me a lot❤❤

  • @nquanta1548
    @nquanta1548 3 ปีที่แล้ว +1

    Thanks bro ,really🔥🔥🔥❤️ nice tutorial

  • @StonedAvocado
    @StonedAvocado 4 ปีที่แล้ว +1

    I'm using classed based views tbh no idea what i'm doing but this worked for me instead of the function view Reverse python used.
    I changed post to task.
    ```
    class TaskDetailView(LoginRequiredMixin,DetailView):
    model = Task

    def get_context_data(self, **kwargs):
    context = super(TaskDetailView, self).get_context_data(**kwargs)
    task = get_object_or_404(Task, id=self.kwargs.get('pk'))
    context['photos'] = TaskImage.objects.filter(task=task)
    return context
    ```

  • @graceyudha
    @graceyudha 4 ปีที่แล้ว

    awesome, hope you hit big on youtube!

  • @exactbrain6248
    @exactbrain6248 4 ปีที่แล้ว

    bro i tried to follow your tutorial using the logic to build a gallery website, it all went well even its rough but i dont know to use the foloop.counter on it , please what method should i use i am trying to make it look like once you click on a picture it shows all the pictures in it without showing the rest, each folder has its own picture in it, pleeeeeeeeeeeeeeeeeeeeeeeeeese

  • @sarthakkalpande6486
    @sarthakkalpande6486 3 ปีที่แล้ว +1

    Very good explaination and editing is also bit satisfying no wastage of time while understanding. Thanks for sharing👍

  • @martinraddatz6519
    @martinraddatz6519 4 ปีที่แล้ว

    Awesome, previously was following a tutorial you showed at the bigining without success

  • @SamirJzVFX
    @SamirJzVFX 4 ปีที่แล้ว

    Whats the name of the background music?

  • @dvrblacktech
    @dvrblacktech 4 ปีที่แล้ว +1

    It's a very nice video.....But one who come here to see this comment, please see his github profile admin.py file....In video it's slightly error is there at (timestamp--3:24)...It results in "attribute error _meta"

    • @silaVnorme
      @silaVnorme ปีที่แล้ว

      Yes, I have the same problem
      AttributeError: type object 'ImageAdmin' has no attribute '_meta'

    • @silaVnorme
      @silaVnorme ปีที่แล้ว

      I coped with problem by changing to @admin.register(PostImage)

  • @sadcat520
    @sadcat520 3 ปีที่แล้ว

    How can I do this without going to another page to see the images?

  • @moila_mosela_wa_pudi
    @moila_mosela_wa_pudi 3 ปีที่แล้ว

    multidict has no attribute '_meta' anyone know how to solve this issue

  • @302blacksheep
    @302blacksheep 4 ปีที่แล้ว

    Excellent! This example is functional in frontend forms with a bootstrap theme? Example, the number of items or photos for each Post, thanks

  • @miosz952
    @miosz952 4 ปีที่แล้ว

    What do to if I want user to be able to create post and upload multiple images?

    • @developertimeline
      @developertimeline  4 ปีที่แล้ว

      Check this out: th-cam.com/video/VX6VLNeRvis/w-d-xo.html

  • @StefanBanu
    @StefanBanu 4 ปีที่แล้ว +1

    Hi, can you please make a video on how to upload multiple files (excel) to a directory?
    thank you for all your effort.

  • @suryaraj93
    @suryaraj93 3 ปีที่แล้ว

    How to implement this in DRF?

  • @ByteVillain
    @ByteVillain 2 ปีที่แล้ว

    Thanks Alot , exactly what I was looking for 🙏✌️✌️

  • @nickmal3044
    @nickmal3044 4 ปีที่แล้ว

    Your tutorial helped me a lot! Thank you!!!

  • @Arsaliqbal
    @Arsaliqbal 4 ปีที่แล้ว +1

    you saved the day bro. Big thanks for this :-)

  • @AngelHernandez-ex7ji
    @AngelHernandez-ex7ji 3 ปีที่แล้ว

    is there a way we can use this with forms

    • @developertimeline
      @developertimeline  3 ปีที่แล้ว

      check second part: th-cam.com/video/VX6VLNeRvis/w-d-xo.html

  • @pablobenitonunez4159
    @pablobenitonunez4159 4 ปีที่แล้ว

    Thanks mate! Just what I needed!

  • @akashsen8203
    @akashsen8203 3 ปีที่แล้ว

    Great video sir! It really helped! Thank you

  • @ivanmain9659
    @ivanmain9659 2 ปีที่แล้ว

    cool! I like ur work!

  • @tradewithtony
    @tradewithtony 4 ปีที่แล้ว

    Just exactly what i wanted, Thanks a lot Man.

  • @glaceondev4149
    @glaceondev4149 4 ปีที่แล้ว

    DUDEEEEEEE YOU ARE A LIFE SAVERR...THAK YOUUUU

  • @hossamashraf4885
    @hossamashraf4885 4 ปีที่แล้ว

    solved it the same way myself :D
    can you make a tutorial in how to override the ImageWidget in django form as the way it looks is very ugly

  • @WoodooChill
    @WoodooChill 4 ปีที่แล้ว +3

    tbh, this is kinda useless for me as it only shows how to implement it in Admin panel, not an actual form

    • @porujon1116
      @porujon1116 4 ปีที่แล้ว

      It's not useless if youre already contented with using admin panel only

    • @WoodooChill
      @WoodooChill 4 ปีที่แล้ว

      @@porujon1116 I disagree... admin panel should not be visible to common users and what use is it, when users are the ones who upload content, not admins

    • @porujon1116
      @porujon1116 4 ปีที่แล้ว

      @@WoodooChill Yeah I agree with you. But l forgot to mention, that im on to some rare cases that only admins are the one who can upload files into the website. So yeah im contented with what the admin panel can do

    • @WoodooChill
      @WoodooChill 4 ปีที่แล้ว

      @@porujon1116 In such rare cases it is reasonable use-case then

    • @avishekthapa1774
      @avishekthapa1774 4 ปีที่แล้ว

      @@WoodooChill by rare cases you mean most of the cases? anyway if you still haven't figured out how to create a view for this, there is a medium blog that shows how to do it. this video also shows a glimpse of the same medium blog

  • @trian3d
    @trian3d 3 ปีที่แล้ว

    Wooow Fantastic man! thanks thanks

  • @sergiomelgarejo4500
    @sergiomelgarejo4500 4 ปีที่แล้ว

    You are the goat. Thanks a lot!

  • @imanirban
    @imanirban 3 ปีที่แล้ว

    Absolutely Brilliant...!!! Cheers

  • @KrishnaManohar8021
    @KrishnaManohar8021 4 ปีที่แล้ว

    Can u make tutorial for me.? How to do muilti language website.(international website) ex: user visited from USA domain.com/en or user visited from China domain.com/ch like that...

  • @technoinfoworldwide2329
    @technoinfoworldwide2329 4 ปีที่แล้ว

    make a blog site series using django with free online news portal template for frontend

  • @jigarvishwakarma2357
    @jigarvishwakarma2357 4 ปีที่แล้ว

    You saved my life

  • @adiltugrulhaydar9790
    @adiltugrulhaydar9790 4 ปีที่แล้ว

    So good, but how can i update this ? :D

  • @mikejuaid2222
    @mikejuaid2222 3 ปีที่แล้ว

    Great video Thanks

  • @ParhamRahimi-x2f
    @ParhamRahimi-x2f ปีที่แล้ว

    very good👍

  • @mrvaibh0
    @mrvaibh0 3 ปีที่แล้ว

    masterpiece

  • @baked_patata
    @baked_patata 4 ปีที่แล้ว

    u ruski ? great video!

  • @ygcjayalal
    @ygcjayalal 4 ปีที่แล้ว

    great video 😍

  • @498748919
    @498748919 4 ปีที่แล้ว

    thank you

  • @daxitpatel
    @daxitpatel 4 ปีที่แล้ว

    thanks alot

  • @sureshbatta7047
    @sureshbatta7047 3 ปีที่แล้ว

    Pls 🙏 change ur way of code explanation, its hard to understand

  • @oggunlukarmy4901
    @oggunlukarmy4901 4 หลายเดือนก่อน

    i love you

  • @anselsolomon6270
    @anselsolomon6270 4 ปีที่แล้ว

    Nice tutorial but please next time, slow down and teach what you are showing people....people wants to learn..is not for fun..thank u....