1👍
✅
This has nothing to do with Ajax or jQuery, it is a Python error. get
is a method: you either do request.POST['rating']
or request.POST.get('rating')
.
Source:stackexchange.com