Django - how can I view Django level errors

I deployed my app like 2 months ago and yesterday when I added some records to database I cannot access certain view. I have no idea how to handle it because in logs all I can see is:

ams [info] [2023-10-27 14:58:42 +0000] [314] [CRITICAL] WORKER TIMEOUT (pid:320)

ams [error] could not complete HTTP request to instance: connection closed before message completed

I could not find any information in docs nor on forum how to access Django level errors.