Event Occurrence #demo_evt_sy…

TemplateSyntaxError

GET /dashboard/ production June 26, 2026, 11:42 a.m.

Error Message

Could not parse the remainder: '||' from 'user.is_authenticated || user.is_staff'

Stacktrace

542
/usr/local/lib/python3.12/site-packages/django/template/base.py
raise TemplateSyntaxError(msg)
parse · django.template.base
42
/app/templates/base.html
<div class='menu'>{% if user.is_authenticated || user.is_staff %}<a href='/profile'>Profile</a>{% endif %}</div>
{% if user.is_authenticated || user.is_staff %} · base.html

Raw Payload

Error: TemplateSyntaxError
Message: Could not parse the remainder: '||' from 'user.is_authenticated || user.is_staff'
Request: GET /dashboard/
Environment: production
Release: v1.2.0
Server: prod-web-01
User: user_92

Stack trace:
   /usr/local/lib/python3.12/site-packages/django/template/base.py:542 in parse    raise TemplateSyntaxError(msg)
-> /app/templates/base.html:42 in {% if user.is_authenticated || user.is_staff %}    <div class='menu'>{% if user.is_authenticated || user.is_staff %}<a href='/profile'>Profile</a>{% endif %}</div>