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.johnston2 жыл бұрын
Hey getting much better Clinton... Keep it up!
@CodeWithClinton2 жыл бұрын
Thank you so much sir.
@unuefeejovwoke66092 жыл бұрын
@@CodeWithClinton hey thanks man, everything is working fine like you did but when I refresh page it goes back to the default
@everythingjdm8057 Жыл бұрын
beautiful video keep up the good work man your teaching is so simple and easy thank you my bro
@CodeWithClinton Жыл бұрын
Thank you so much. 🙏
@unuefeejovwoke66092 жыл бұрын
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
@CodeWithClinton2 жыл бұрын
Thanks, there should be an error message on your broweser's console and also on your terminal.
@unuefeejovwoke66092 жыл бұрын
@@CodeWithClinton the problem is I can't see any errors, not on my terminal or even on my console
@CodeWithClinton2 жыл бұрын
@@unuefeejovwoke6609 are you using my source code?
@unuefeejovwoke66092 жыл бұрын
@@CodeWithClinton I'm using your tutorial and codes from it to integrate in a project for same likes and dislike features
@CodeWithClinton2 жыл бұрын
@@unuefeejovwoke6609 there is something you are not doing right.
@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 Жыл бұрын
With JavaScript you can get the ids of the post on the list page. I really don't know your javascript strength.
@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 Жыл бұрын
@@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.