Re: List of available Jinja2 global symbols

2015-11-22 Thread Patrick Spencer
I see what you mean about not being about to have a global list of symbols because everything is subject to change. But it would be nice to have a default list of symbols available depending on the default initial setup. I think the csrf_token and request token are available in the

Re: List of available Jinja2 global symbols

2015-11-22 Thread Patrick Spencer
15 at 1:17:59 PM UTC+1, JirkaV wrote: >> >> Hi there, I'm not a Jinja2 user, but standard Django templates get these >> variables via context processors‎. Check out >> https://docs.djangoproject.com/en/1.8/topics/templates/#context-processors >> >> HTH >&

Re: List of available Jinja2 global symbols

2015-11-22 Thread Patrick Spencer
> https://docs.djangoproject.com/en/1.8/topics/templates/#context-processors > > HTH > >Jirka > > *From: *Patrick Spencer > *Sent: *neděle, 22. listopadu 2015 5:45 > *To: *Django users > *Reply To: *django...@googlegroups.com > *Subject: *List of available

List of available Jinja2 global symbols

2015-11-21 Thread Patrick Spencer
I'm using Django 1.8.6 with the built in JInja2 support. I spent a while trying to figure out how to pass a csrf token to a JInja2 template. After a while I realized one could just write {{ csrf_token }} in the template, without passing this value through a view, and it would just print out the