Let's take a look at how we can make a django view that receives json data through ajax and also responds with json data. This is useful for when we want to perform logic on the server, but don't want to have a page refresh, such as with a contact form.
You can view the source code at https://github.com/awwester/explore/c...