I have a problem with Django and database postresql. I am trying to fetch some data with the following code:
resultQuery=Usuario.objects.filter(correo=strmail,contrasena=strpwd)
So far all is good, also I get the record count, but after a little while the server seems to disconnect and I get this error:
ConnectionAbortedError: [WinError 10053] Se ha anulado una conexión establecida por el software en su equipo host
When I don't use database code it seems to be fine, it only happens when I start using some database code.
Thanks