Testing Unmanaged Models - Using the SchemaEditor to create db tables

2024-01-28 Thread Emmanuel Katchy
Hi everyone! I'd like to get your thoughts on something. Unmanaged models mean that Django no longer handles creating and managing schema at the database level (hence the name). When running tests, this means these tables aren't created, and we can't run queries against that model. The general

Possible async view regression in django 5.0?

2024-01-28 Thread Hugo Heyman
Hello! I've been troubleshooting an issue with lingering idle db connections (postgres) since upgrading from django 4.2 to 5.0. The issue manifested by db raising OperationalError FATAL: sorry, too many clients already not long after deploying the new version. We're running asgi with uvicorn