Django TemplateSyntaxError: Could not parse the remainder - Python Web Development

preview_player
Показать описание
#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:
Рекомендации по теме
Комментарии
Автор

Большое спасибо!
(пара слов в комментарий для продвижения видео алгоритмами YouTube😉)

sna
Автор

Bro i have a problem regarding variable template can u plz help me

sagarbadhe