srobo / helpdesk-system

App for managing a competition helpdesk
MIT License
0 stars 1 forks source link

TemplateSyntaxError: Invalid block tag on line 15: 'trans', expected 'elif', 'else' or 'endif'. Did you forget to regi... #8

Open sentry-io[bot] opened 1 year ago

sentry-io[bot] commented 1 year ago

Sentry Issue: HELPDESK-SYSTEM-M

KeyError: 'trans'
  File "django/template/base.py", line 470, in parse
    compile_func = self.tags[command]

TemplateSyntaxError: Invalid block tag on line 15: 'trans', expected 'elif', 'else' or 'endif'. Did you forget to register or load this tag?
(25 additional frame(s) were not displayed)
...
  File "django/template/base.py", line 478, in parse
    raise self.error(token, e)
  File "django/template/base.py", line 476, in parse
    compiled_result = compile_func(self, token)
  File "django/template/defaulttags.py", line 968, in do_if
    nodelist = parser.parse(('elif', 'else', 'endif'))
  File "django/template/base.py", line 472, in parse
    self.invalid_block_tag(token, command, parse_until)
  File "django/template/base.py", line 522, in invalid_block_tag
    raise self.error(
PeterJCLaw commented 1 year ago

wat? The only template containing the trans (translation) tags seems to be the logout one (presumably as it's copied from some defaults?) and yet that url does work locally and in prod for me.