[Answer]-Problems passing a dictionary to a template in Django

1👍

You need to pass context as a dict. You would do so like

def display_meta(request):
    values = request.META.items()
    values.sort()
    return render_to_response('meta_data.html', {'c': values})

Each key represents the variable that will be available, in this case c will be a dict with the items in values

Leave a comment