[Solved]-Django TypeError 'method' object is not subscriptable

40👍

The problematic line tries to use subscript notation with method get of the mapping GET:

query = self.request.GET.get["q"]

The method should be called with:

query = self.request.GET.get("q")

Leave a comment