In the last post, we discussed the error I have got and how I overcame those. In this blog, we will see how I dealt with AJAX. To begin with, all of you have used some social media like facebook, Instagram etc and all of them have some things in common. One of them is the like feature. Yow can like anything you find useful, fun or interesting. That simple "like" feature. Many of the normal users don't observe this actually, they don't have to observe this but whenever you hit the like button or double-tap in Instagram and the information that you liked that post is sent to the server, saved in the databases and some indication is given to you as well, so that you know that you have liked this post. All of this happens without the page getting reloaded. This sounds like usual stuff to the normal people but it's not as simple as it looks like. Not for an amateur web developer who has just started with web developing Generally, if we wish to make a get request to
So everything was going fine till now and I was progressing in my project, but as we know that coding is riding a bike in Jurassic Park, where you can encounter a dinosaur like errors. I encountered an error in my code. First I will tell you the background details that are necessary to know to be clear about the error occurred, then I will tell you about the error and then we would go to how I solved it. So all of you must have read about how I was maintaining the user profile if not you can read it here "The User Profile" . I would insist on going back to this link again as I have uploaded an image to make things even more clear about how did it. So I had additional fields on my user profile such as image, email, status, city etc. I have used Django signals to create user profile whenever a user is created. To those who don't know what signals are, Signals are built-in in Django which are used to execute some lines of code when some other line of code is executed. Th