#Python #Shorts
Sometimes you run into errors even when you think you did everything right. One of the errors I've run into was "TemplateSyntaxError: Could not parse the remainder". Obviously, there could be more than one condition when this error occurs but for me it was using the double curly brackets instead of single ones when using the if/else statements in a Django template.
So to fix it, go to your HTML file with the logic you've written, and change {{% if some_condition %}} to {% if some_condition %}.
-------------------------------------------------------------------------------------
Links:
Blog: https://evgenyurubkov.com
Twitter: / evgenyurubkov
Instagram: / evgenyurubkov
Youtube: / @codevev
Watch video Django TemplateSyntaxError: Could not parse the remainder - Python Web Development online without registration, duration hours minute second in high quality. This video was added by user codevev 01 July 2021, don't forget to share it with your friends and acquaintances, it has been viewed on our site 741 once and liked it 9 people.