1👍
That’s because request.META.items()
return is of type dict_items
(sort of generator). You need to turn it into a dictionary to assign another key.
values = dict(request.META.items())
Source:stackexchange.com
1👍
That’s because request.META.items()
return is of type dict_items
(sort of generator). You need to turn it into a dictionary to assign another key.
values = dict(request.META.items())