To the risk of being closed as duplicate (I can't really find it...) I have the following question. I am sure it's either under my nose, or not possible, but I prefer to ask.
Is it possible to bind to multiple, shorter variable names in django? I know the existence of with
, but with assumes you open a block. I would like to bind three or four, meaning that I would have to open (and close) four with
blocks. Feasible, but not very nice.
Example, say I have this in my context: foo.bar.baz.quux1
, foo.bar.baz.quux2
, foo.bar.baz.quux3
. I would like to bind them to quux1
, quux2
and quux3
for easier access.