Sorry Guys for the low audio quality. You can find this like button functionality applied to the part 6 and 7 of the FREE social network project tutorial here on KZbin: kzbin.info/www/bejne/bYfLmYJnhsqjhNE
@uen18573 жыл бұрын
why no one on youtube covered until now how user share another user post in django (not social shares on FB, twiter...)
@UliaKey4 жыл бұрын
Hello from Siberia! It's simple and effective! Exactly what need for my project! Thanks for the video!
@Pyplane4 жыл бұрын
Hello &thank you. Glad you liked it :)
@alkotama57053 жыл бұрын
Привет, русский!
@UliaKey3 жыл бұрын
@@alkotama5705 😸
@alkotama57053 жыл бұрын
@@UliaKey про что был твой проект, когда ты смотрел это видео, и завершил ли ты его до конца?
@UliaKey3 жыл бұрын
@@alkotama5705 я завершила проект за полгода до того. Я делала сайт электронного литературно-художественного журнала. Сейчас проект на время закрыт из-за того, что я предпочла потратить время на другую работу.
@mikeadigu27042 жыл бұрын
This is the best i have seen, Am making super excited...
@gokulnath9654 жыл бұрын
Thanks for the video! I'm using class based view for posts(ListView) & how do I pass user varible to html template from DB unlike static dict?
@Pyplane4 жыл бұрын
Hi, I'm not sure if I understand the question. if you are using classed based views and you want to pass in some additional content you need to pass it within get_context_data method
@gokulnath9654 жыл бұрын
Thanks a lot😀😀..it's working now...In admin page, under Like section, if I like a post, it is not reflecting in webpage....whereas if I like a post under Post section, it's working.. Could you pls help?
@Tutordidi3 жыл бұрын
Thank you so much for this tutorial.
@palanikumar80234 жыл бұрын
Y r u creating seperate model for likes...it is defined above....
@Developer_python_ Жыл бұрын
why did you use default=None in MantToMany field?
@hamdyramzy43503 жыл бұрын
Why we add value field ? you handle all things by add if current user in post liked or no.
@ashkanDOD3 жыл бұрын
Mate that was perfect you solve my problem would you mind extend this tutorial with Ajax ?
@parthparmar1617 Жыл бұрын
I was looking for how to do it for past 2 days and got nowhere. This video helped me do it very simply.
@GladiusArch084 жыл бұрын
Is there a way to have a like counter field in the post model ?
@Pyplane4 жыл бұрын
Hi Shatanik. I guess you could set i.e. a positiveintegerfield, but why would you want to do that? You can get everything based on the manytomanyfield. Regards, Luke
@GladiusArch084 жыл бұрын
@@Pyplane actually I got a feedback from my senior the current process would be difficult to use if the number of likes reach thousands and even more. So I was thinking of a bypass. Thanks for the suggestion, will try it out.
@giovanniluisbarrantesl9563 Жыл бұрын
How can I use this with Google Tag Manager?
@letslearnui3 жыл бұрын
how we can display the total number of likes against each post in admin area?
@anilshrestha12724 жыл бұрын
is your microphone on the other room, it sounds far away.
@Pyplane4 жыл бұрын
It was actually very close, but I had to move my computer to another room and lost all the settings :/ I'm very sorry for the low quality
@JobFormAutomator3 жыл бұрын
@@Pyplane No worries bro still you are awesome
@danielkessie99214 жыл бұрын
thanks pyplane, this video helps me a lot
@bhaveshsuthar72393 жыл бұрын
Thanks man! It helped me!
@benyaminfeizi67434 жыл бұрын
hi how can make button in DeleteView
@NotBeHaris4 жыл бұрын
Great tutorial.
@Pyplane4 жыл бұрын
Thank you :)
@NotBeHaris4 жыл бұрын
@@Pyplane i have query can you help me?
@kowalskime3 жыл бұрын
Thank you thank you my friend:) this is what i want and this is awesome Thank you :)
@daniellachege25674 жыл бұрын
Thanks. This was very helpful
@codebong67813 жыл бұрын
Why the page gets refreshed when i press like button
@manishkumar-cp3st4 жыл бұрын
Can u tell me how to handle ajax with it to prevent page refresh.
@Pyplane4 жыл бұрын
Once I'll finish the social network series I'm planning to do a similar one for django with django rest framework & react
@manishkumar-cp3st4 жыл бұрын
@@Pyplane sir it will be very helpful if u just add ajax to this is code and send it to me. I middle of my project and i desperately need this.
@manishkumar-cp3st4 жыл бұрын
Without any video tutorial just a page to shoe how to do it.
@Pyplane4 жыл бұрын
@@manishkumar-cp3st Hi. I made a simplified tutorial : kzbin.info/www/bejne/lYXCnKSepa-EnLs. Hope this helps. Regards, Luke
@codebong67813 жыл бұрын
@manish have you got idea to solve the problem?
@everythingjdm80572 жыл бұрын
how can we see who like the post
@alexandruaprodu68674 жыл бұрын
works like a charm, thanks
@sanjeevprasad17054 жыл бұрын
Please make a video on favourite button...
@zacian49413 жыл бұрын
hey bro mine isn't working. It says 0 likes and when I click on button nothing happens. please help!!
@aniketsharma76554 жыл бұрын
Thanks mate. It works :)
@ashumohanty5662 жыл бұрын
please anyone help me i cannot find the base.html
@ssannnkkkiiii Жыл бұрын
u must created a base.html
@amaangigani93724 жыл бұрын
Does your website have user login?
@Pyplane4 жыл бұрын
Hi. The blog does, the website itself not
@amaangigani93724 жыл бұрын
@@Pyplane I doubt it, but is there a chance to implement a like button without having a user login?
@Aakib1804 жыл бұрын
Dear sir how i prevent at the time of click like button my page is refressed how i stop
@Pyplane4 жыл бұрын
Hi Muhammad. You need to take a bit different approach. Recommend for this use of DRF and React (the easiest) or jquery with ajax. You can check it out here: kzbin.info/www/bejne/lYXCnKSepa-EnLs
@andreachello943 жыл бұрын
@@Pyplane It was working yesterday, now the video is unavailable :(
@manishkumar-cp3st4 жыл бұрын
I couldn't toggle between like and unlike else everything work
@Pyplane4 жыл бұрын
Hi Manish. In the post_view did you pass the user to the main.html in the context dictionary? I'm pretty sure there is one small mistake that doesn't allow you to toggle :)
@manishkumar-cp3st4 жыл бұрын
@@Pyplane yeah its working thanks for your efforts
@TalesbyPrathamesh Жыл бұрын
Thank you saviour
@lujahawhsuk15064 жыл бұрын
When i click on like button Then this error is showing TypeError at /like int() argument must be a string , a bytes-like object or a number, not 'SimpleLazyObject' And showing erroy here post_obj.liked.add(user) Local vars post_id '1' past_obj user Anonymous user Please help
@Pyplane4 жыл бұрын
Hi Luja. Please login to the django admin since you get 'user Anonymous user'
@lujahawhsuk15064 жыл бұрын
@@Pyplane i have already login In Django admin to super user
@Pyplane4 жыл бұрын
@@lujahawhsuk1506 Sorry you have this problem. Difficult for me to say what's wrong without seeing the code :/ hope you'll figure it out. Cheers
@lujahawhsuk15064 жыл бұрын
@@Pyplane how did i sand you code for checking the code.
@Pyplane4 жыл бұрын
@@lujahawhsuk1506 I don't do code checks, it's impossible for me working 12-14 hours per day :( Please follow carefully the tutorial step by step. I'm sure it's just matter of a small mistake
@mainulislamfaruqi4 жыл бұрын
Well done,,,, where are you from...???
@Pyplane4 жыл бұрын
Thank you! I'm from Poland :)
@mainulislamfaruqi4 жыл бұрын
@@Pyplane How to become an expert in Django???
@Pyplane4 жыл бұрын
English Learning expert? :) I’m only pretty good at it, not an expert. It’s a huge framework but if you are just getting started - be patient, practice, don’t give up at anytime. Wish you all the best! Cheers
@mainulislamfaruqi4 жыл бұрын
@@Pyplane thanks
@akashchauhan69694 жыл бұрын
Great video. I have been looking for some elegant ways to implement like functionality in django..And here we have it 👍
@ashumohanty5662 жыл бұрын
where the base.html
@sergeiklimov20294 жыл бұрын
Thanks a lot
@programmermainul65584 жыл бұрын
hot to create a like button in django without user authentication. sothat every person can like.
@ShivaKumar-dl7kk4 жыл бұрын
@Crazy Python Lover , Hi I want also the same functionality
@thebalu98043 жыл бұрын
Thanks from Russia, it is good video , but I have problem this last part . That show me problem is: AttributeError at /like/. That told me i have problem here: post_obj = Post.object.get(id=post_id) . But I did everything same.
@ИльяЗавьялов-н5у2 жыл бұрын
Did you find solution?
@thebalu98042 жыл бұрын
@@ИльяЗавьялов-н5у да нашёл
@danielkraus56624 жыл бұрын
@30:00 post_obj.liked.remove(user). Not post.obj other than that awesome video!
@kaushalendrapandey26624 жыл бұрын
great...
@Pyplane4 жыл бұрын
Thank you ! And once again sorry for the low quality of audio
@NotBeHaris4 жыл бұрын
how i create chat application in django real time chat application
@Pyplane4 жыл бұрын
Maybe I'll do a tutorial on this. The next series on the channel will be also a realtime app, but for cryptocurrencies. If you don't want to wait you can find instructions in django channels documentation on how to create a chat app or by going through other tutorials here on youtube
@NotBeHaris4 жыл бұрын
@@Pyplane thanks please in near future make video on djano channel