django网址:
url(r'^post/(?P<post_id>.+)/$', views.get_one_post, name='onepost')
ajax:
$(document).ready(function () {
$(".answer").click(function () {
var parent_id = $(this).attr('name');
$.ajax({
url: "post/",
type: "POST",
data: {parent_id: parent_id}
})
})
})