I'm working on Django template and setting Conditional branching whether there is a "query" or not.
{% if {{ request.GET.query }} == "" %}
<td><a href="/detail/{{item.id}}/{{item.item_hs6}}">detail</a></td>
{% else %}
<td><a href="/detail/{{item.id}}/{{item.item_hs6}}/{{ request.GET.query }}">detail</a></td>
{% endif %}
When I execute the above code, the error occurs here.
Exception Type: TemplateSyntaxError Exception Value: Could not parse the remainder: '{{' from '{{'
I know the code below is something wrong
{% if {{ request.GET.query }} == "" %}
How should I judge whether there is a query or not in Template?
I just mentioned the above settings in this question but still if more code is required then tell me I'll update my question with that information. Thank you