[Fixed]-Add item to request.Meta in Django and print it in template

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())
👤beezz

Leave a comment