views:

47

answers:

1
{{profile.first-name.value}}

My variable is hypeh only...I wish I could do first_name, but many variables are hyphens. However, due to this problem, I can't display my variables in the template. Why?

+5  A: 

The hyphen is an operator in Python. It would work better if you swapped all hyphens for underscores.

Skilldrick
I think "would work better" should be "won't work at *all* unless".
Peter Rowell