Django how to handle # in variable name.
- by Jack
I've got a dictionary in python which is assigned as a template variable. One of the keys is named "#text" but when i try to access it using {{ artist.image.3."#text"}} I get an error which is
File "/home/jack/Desktop/test/appengine/lib/django/django/template/__init__.py", line 558, in __init__
raise TemplateSyntaxError, "Could not parse…