I\'m going to get parameter form AJAX request in Django, Here\'s what I\'m doing:
base.html:
{% csrf_tok
Instead of using a click handler, you could setup a more robust form submit function to do the same thing. Returning false cancels the default submit behavior.
$("form").submit(function() { $.post("/", { name: "MY TEXT", }); return false; });