Skip to content Skip to sidebar Skip to footer

Django TemplateSyntaxError: Error During Template Rendering

I am working on a Python/ Django project, having not really used either much before. I am currently getting a TemplateSyntaxError when clicking a link on one of the pages on my web

Solution 1:

when displaying a variable in django templates you use

{{variable}}

so to fix your issue change

{% date_to_display %}

into

{{date_to_display}}

Solution 2:

You can check how to display variables in django template in the following link; https://docs.djangoproject.com/en/1.10/topics/templates/#variables


Post a Comment for "Django TemplateSyntaxError: Error During Template Rendering"