why is it not possible to use the async client to login without using synctoasync?

First of all, you get a response, not a request.

What evaluates to True, would be response.ok.

However, async_client.login is not an async method and does not send a request, same with force_login. They simply fake a session with a logged in user and are synchronous (with database access if your SESSION_STORE is ModelBackend).

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top