#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