Viewing posts from April, 2011

Print CGI / META /QUERY_STRING in Django Template

Posted by: scoopseven in Django 13 years ago
Differentiating how to display or access variables/structures/dictionaries in Django templates (as opposed to views) can get frustrating. All I was trying to do was print the query string in a template. That's. It. Why couldn't I just do:

read more / 0 comments

Unpacking a Tuple in a Django Template

Posted by: scoopseven in Django 13 years ago
You've passed in a tuple to your template and now you're trying to access the separate indexes/items in a loop. Here's the tuple:

read more / 0 comments

Recent Tweets

Recent Posts

Archive

2013
2012
2011
2010
2009
2008
2007
2006

Categories

Authors

Feeds

RSS / Atom