Django template rendering to itself -


I am trying to render the dictionary content using dengue templates such as for example: X in the result X It is

X = {a: 1, b: 1, c: X (Dictionary again X)}

Template: results.html, something like the following

  {{a}} {{b}} {% if Xa%} { % Result.html%} {% included}  

I thought this would work, but the issue It receives error in saying:

  Maximum recursive depth exceeded while calling the Python object  <

Get rid of X part in your dictionary X, you can not do this

You can include X or property twice in your template, so there is no need of nested self-references in your dictionary.


Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -