[Fixed]-Could not parse the remainder: '=='Sophia'' from 'abc.first_name=='Sophia'' Python/Django

1👍

Django’s template parser is pretty unsophisticated, unlike Python’s. One consequence of this is that you need to use spaces around every operator.

{% if abc.first_name == 'Sophia' %}

Leave a comment