You can't get it sorted (you would need a template filter for that), but:
{% for k, v in request.META.items %}{{ k }}{{ v }}{%
endfor %}
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails f
On Mon, Sep 8, 2014 at 5:08 PM, Артём Мутерко wrote:
> I need to list all values from request.META in Django using template.
>
> I've done it without template like this
> (code from my views.py)
>
> def display_meta(request):
> values = request.META.items()
> values.sort()
> html = []
> fo
simple ways is using form and passing values to the template from the form.
https://docs.djangoproject.com/en/dev/topics/forms/
Many thanks,
Serge
+380 636150445
skype: skhohlov
On Mon, Sep 8, 2014 at 7:08 PM, Артём Мутерко
wrote:
> I need to list all values from request.META in Django using
I need to list all values from request.META in Django using template.
I've done it without template like this
(code from my views.py)
def display_meta(request):
values = request.META.items()
values.sort()
html = []
for k, v in values:
html.append(‘%s%s’ % (k, v))
return HttpRespo
4 matches
Mail list logo