Django Ajax Full Tutorial | Ajaxify Django | Like and Dislike Blog Post without Page Reload.

  Рет қаралды 1,821

Code With Clinton

Code With Clinton

Күн бұрын

Пікірлер: 20
@narayanadumpala3381
@narayanadumpala3381 Жыл бұрын
Hello bro , ur video is simple superb and easy to understand, pls continue to do more videos in this django session...Thank you so much for the videos....🎉
@fred.c.johnston
@fred.c.johnston 2 жыл бұрын
Hey getting much better Clinton... Keep it up!
@CodeWithClinton
@CodeWithClinton 2 жыл бұрын
Thank you so much sir.
@unuefeejovwoke6609
@unuefeejovwoke6609 2 жыл бұрын
@@CodeWithClinton hey thanks man, everything is working fine like you did but when I refresh page it goes back to the default
@everythingjdm8057
@everythingjdm8057 Жыл бұрын
beautiful video keep up the good work man your teaching is so simple and easy thank you my bro
@CodeWithClinton
@CodeWithClinton Жыл бұрын
Thank you so much. 🙏
@unuefeejovwoke6609
@unuefeejovwoke6609 2 жыл бұрын
Hey nice tutorial, but I'm having some issues, for some reasons my ajax requests aren't going, I have added the cdn for ajax but yet nothing, when I click on the icon I don't get any response on my console to test things out. Please help
@CodeWithClinton
@CodeWithClinton 2 жыл бұрын
Thanks, there should be an error message on your broweser's console and also on your terminal.
@unuefeejovwoke6609
@unuefeejovwoke6609 2 жыл бұрын
@@CodeWithClinton the problem is I can't see any errors, not on my terminal or even on my console
@CodeWithClinton
@CodeWithClinton 2 жыл бұрын
@@unuefeejovwoke6609 are you using my source code?
@unuefeejovwoke6609
@unuefeejovwoke6609 2 жыл бұрын
@@CodeWithClinton I'm using your tutorial and codes from it to integrate in a project for same likes and dislike features
@CodeWithClinton
@CodeWithClinton 2 жыл бұрын
@@unuefeejovwoke6609 there is something you are not doing right.
@jonahebute
@jonahebute Жыл бұрын
Amazing man. I'm implementing this on my project. I'm facing an obstacle right now. For "{{post.id}}" variable in the ajax that you got from the context in the blog-detail view, my view displays all posts in the db and the like functionality is on this page(so a list). How do I go about this please? I know I have to use a for loop, but I can't just work my way round it. Please give me some pointers 🙏🏽
@CodeWithClinton
@CodeWithClinton Жыл бұрын
With JavaScript you can get the ids of the post on the list page. I really don't know your javascript strength.
@jonahebute
@jonahebute Жыл бұрын
@@CodeWithClinton Thank you for the reply. Not really strong to be honest. Can I enclose the entire ajax function in a for loop?Say: if the key in my view page is "posts", can I do: for(post in posts){ ..."then all the body of code necessary"}. On the side I just followed you on LinkedIn.
@CodeWithClinton
@CodeWithClinton Жыл бұрын
@@jonahebute listen for a click event on the post, during onclick on any of the post you have to send the id of the post to a backend view you created, with the id you can get the post with that id then you add or remove a like. Thanks for the follow on LinkedIn.
@jonahebute
@jonahebute Жыл бұрын
@@CodeWithClinton Alright thank you
@codedjango
@codedjango 2 жыл бұрын
Nice 😀
@CodeWithClinton
@CodeWithClinton 2 жыл бұрын
Thank you. 🙏
Django and React Project #1 - Introduction and Project Setup
29:19
Code With Clinton
Рет қаралды 663
Django REST Framework Tutorial #1: Project Setup & Custom User Model
22:33
Что-что Мурсдей говорит? 💭 #симбочка #симба #мурсдей
00:19
Mom Hack for Cooking Solo with a Little One! 🍳👶
00:15
5-Minute Crafts HOUSE
Рет қаралды 23 МЛН
Part 2 Penjelasan Javascript
20:24
KoderID
Рет қаралды 8
Django and React Project #10 - JWT Authentication
1:00:45
Code With Clinton
Рет қаралды 207