from django.http import QueryDict data = QueryDict('a=1&a=2&b=3') print(data.get('a'))
from django.http import HttpRequest def my_view(request): data = request.GET print(data.get('a'))This code is a basic Django view that receives an HttpRequest object. It then retrieves the GET data, and retrieves the first value of the key 'a' using the get() method. The Django QueryDict is a standard part of the Django framework, and no additional package library is needed.