I believe thatauthenticate()should be left as is (only expectingusername). Otherwise, all DRY/pluggable authentication backends would have to first check theUSERNAME_FIELDfrom the user model every time someone tries to authenticate. It would also require pluggable backends to check the Django version...
If you’re using the apscheduler library in your FastAPI app running in a Docker container, and you’re not seeing print messages in the container logs, it’s possible that the messages are being buffered by the apscheduler library or the Python interpreter, and are not being immediately flu...