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 
token. I also realized you could reference a request object without passing 
it through the view i.e. {{ request.user }} returns the current user. Is 
there a place in the documentation with all the available global symbols 
one can use in a Jinja2 template?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/537bd366-180e-4876-8b91-5791f8e22d44%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to