Re: Simple task. Get request.META values listed on a page via template

2014-09-19 Thread Collin Anderson
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

Re: Simple task. Get request.META values listed on a page via template

2014-09-19 Thread Tom Evans
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() >

Re: Simple task. Get request.META values listed on a page via template

2014-09-18 Thread Sergiy Khohlov
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

Simple task. Get request.META values listed on a page via template

2014-09-08 Thread Артём Мутерко
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