[Answered ]-AttributeError: 'WSGIRequest' object has no attribute 'getlist'

2👍

It should be:

message = request.POST.getlist("message")

In an HttpRequest object, the GET and POST attributes are instances of django.http.QueryDict. getlist is method of QueryDict and not HttpRequest.

Leave a comment