Learn Django - The Easy Way | Using Ajax & Jquery in Like Button | Tutorial - 38

preview_player
Показать описание
In this video lecture, we will include Ajax and Jquery in our like/dislike button for liking the post and to provide better experience to the site visitor or the user.

Find the social network links below to connect with me:

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

Hi, I do not know where you are from. I'm from Peru and I see your videos because I want to learn Python / Django, and even if I do not speak the language you do. Talk helped me a lot.
I am currently self-taught and I do not have anyone. I would like to live with you to learn more and more.

hebertvillafuerte
Автор

great tutorial I WANT TO CREATE A LIKE BUTTON IN MY DJANGO PROJECT THE POST CAN BE LIKED BY ANY BODY NO NEED TO REGISTER. HOW CAN I ARCHIEVE IT ?

jinayorobo
Автор

Savior! This works. You can follow along even if you know minimal Ajax, such as myself. Does anyone who how to make this work for multiple buttons on a page?

SuperJAIMISH
Автор

Thank u very much! keep doing it, your videos r really heplful!

БахытгульАжигалиева
Автор

buddy i get this in the console log, POST http: // localhost: 8000 / likes 403 (Forbidden), help me please

hebertvillafuerte
Автор

bro when click button data is saved but not refreshed liked button when page refresh it will change the like button help m broo

nanikumar
Автор

Hello, Abishek Verma
I am trying your method an when first time i click on the button it return the value n the value of button gets null

danishshaikh
Автор

i've been having a problem with this formula for days now, issue is the like button works perfectly without reloading but the unlike button returns an error that the like_post view did not return a httpresponse object it returned none instead and when i go back and reload the page, the post is unliked please anyone with any idea how i should solve this.

immaculatekimani
Автор

Thank you for the tutorial. Pls how can we add the like button in the listview instead of coming to the detail view before clicking it. Thanks

ezechidera
Автор

Nice tutorial.
Do you have these codes on GitHub?
If yes, please can you provide Github Links..

TheGoodOldHumanBeing
Автор

Man thanks a loot, u made my day better. On views.py line 75 should it be ?

stefantataru
Автор

The AJAX does not work for me, I get a 400 Bad request, I am using Django 2.2, could that be the issue?

ioan-dumitruhadarean
Автор

Hey man! How could I render this "like button" in my ListView not only in my DetailView?

_kaio_
Автор

hello friend, the ajax does not work ...: c for more than I did everything the same, it does not work for me: c, help me please

hebertvillafuerte
visit shbcf.ru