You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The expected behaviour on journalctl log is an exception stacktrace with something like (from django console):
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "/usr/local/lib/python3.7/dist-packages/django/db/models/query.py", line 1091, in annotate
return self._annotate(args, kwargs, select=True)
File "/usr/local/lib/python3.7/dist-packages/django/db/models/query.py", line 1126, in _annotate
"the model." % alias)
ValueError: The annotation 'kcal' conflicts with a field on the model.
When django raise a 500 error (f.e. following a ValueError), instead of exception stacktrace on journalctl log there is an UnicodeDecodeError.
Environment: Debian 10.12, Python 3.7.3, Django 3.2.5, Daphne 3.0.2, Apache 2.4.38
Systemd Unit File:
Sample output
In a queryset, I define an annotation with the same name as a field:
The expected behaviour on journalctl log is an exception stacktrace with something like (from django console):
Instead I have:
The text was updated successfully, but these errors were encountered: