Django performance issue on render after upgrade to Django 4.2

I'm upgrading an old Django project to Django 4.2. Everything seems to be working, except that performance on pages has degraded by factor of 100x.

I profiled the views and everything is still performing correctly. The issue seems to be around rendering the template or perhaps the middleware.

I used the Django debug toolbar and I'm seeing that all the time is spent on an exception when processing the request. Any idea on what might be happening, or how I can get more information about this exception?

Call    CumTime Per TotTime Per Count
- /debug_toolbar/panels/__init__.py in process_request(196)
37.600  37.600  0.000   0.000   2
 /django/core/handlers/exception.py in inner(52)
37.600  37.600  0.000   0.000   1
Вернуться на верх