This is the entries in the error log that seems to correspond to the access log of my previous comment:
2024-01-25 22:52:50,669: OSErrorError running WSGI application
2024-01-25 22:52:50,688: RecursionError: maximum recursion depth exceeded while calling a Python object
2024-01-25 22:52:50,689: File "/usr/local/lib/python3.9/site-packages/django/core/handlers/wsgi.py", line 132, in __call__
2024-01-25 22:52:50,689: response = self.get_response(request)
2024-01-25 22:52:50,690:
2024-01-25 22:52:50,690: File "/usr/local/lib/python3.9/site-packages/django/core/handlers/base.py", line 143, in get_response
2024-01-25 22:52:50,690: log_response(
2024-01-25 22:52:50,690:
2024-01-25 22:52:50,690: File "/usr/local/lib/python3.9/site-packages/django/utils/log.py", line 241, in log_response
2024-01-25 22:52:50,690: getattr(logger, level)(
2024-01-25 22:52:50,691:
2024-01-25 22:52:50,691: File "/usr/local/lib/python3.9/logging/__init__.py", line 1458, in warning
2024-01-25 22:52:50,691: self._log(WARNING, msg, args, **kwargs)
2024-01-25 22:52:50,691:
2024-01-25 22:52:50,691: File "/usr/local/lib/python3.9/logging/__init__.py", line 1589, in _log
2024-01-25 22:52:50,692: self.handle(record)
2024-01-25 22:52:50,692:
2024-01-25 22:52:50,692: File "/usr/local/lib/python3.9/logging/__init__.py", line 1599, in handle
2024-01-25 22:52:50,692: self.callHandlers(record)
2024-01-25 22:52:50,692:
2024-01-25 22:52:50,692: File "/usr/local/lib/python3.9/logging/__init__.py", line 1661, in callHandlers
2024-01-25 22:52:50,693: hdlr.handle(record)
2024-01-25 22:52:50,693:
2024-01-25 22:52:50,693: File "/usr/local/lib/python3.9/logging/__init__.py", line 952, in handle
2024-01-25 22:52:50,693: self.emit(record)
2024-01-25 22:52:50,693:
2024-01-25 22:52:50,693: File "/usr/local/lib/python3.9/logging/__init__.py", line 1086, in emit
2024-01-25 22:52:50,694: stream.write(msg + self.terminator)
2024-01-25 22:52:50,694:
2024-01-25 22:52:50,694: File "/usr/local/lib/python3.9/logging/__init__.py", line 1475, in error
2024-01-25 22:52:50,694: self._log(ERROR, msg, args, **kwargs)
...
2024-01-25 22:52:56,386:
2024-01-25 22:52:56,386: File "/usr/local/lib/python3.9/logging/__init__.py", line 1587, in _log
2024-01-25 22:52:56,386: record = self.makeRecord(self.name, level, fn, lno, msg, args,
2024-01-25 22:52:56,387:
2024-01-25 22:52:56,387: File "/usr/local/lib/python3.9/logging/__init__.py", line 1556, in makeRecord
2024-01-25 22:52:56,388: rv = _logRecordFactory(name, level, fn, lno, msg, args, exc_info, func,
2024-01-25 22:52:56,388:
2024-01-25 22:52:56,388: File "/usr/local/lib/python3.9/logging/__init__.py", line 312, in __init__
2024-01-25 22:52:56,389: self.levelname = getLevelName(level)
2024-01-25 22:52:56,389:
2024-01-25 22:52:56,389: File "/usr/local/lib/python3.9/logging/__init__.py", line 138, in getLevelName
2024-01-25 22:52:56,390: result = _levelToName.get(level)