When I try to send an array to Django via Ajax (jQuery)
JavaScript code:
new_data = [\'a\',\'b\',\'c\',\'d\',\'e\']; $.get(\'/python
You're looking for the QueryDict's getlist
QueryDict
getlist
request.GET.getlist('data') request.GET.getlist('data[]') request.GET.getlist('etc')
https://docs.djangoproject.com/en/2.0/ref/request-response/#django.http.QueryDict.getlist