[Answer]-Django jQuery Ajax. I get response, but it does not insert in html

1👍

Can you put the dataType in javascript between quotes, change:

dataType: JSON

to

dataType: 'json'

What does your browser do when you access /BitProject/ajaxrequest/ directly?

0👍

You also have a typo in the view's code. Replace:

mimetype=”applicaton/json”

for:

mimetype=”application/json”

Leave a comment