Django.db.utils.interfaceerror: (0, '')
I've recently implemented django in a tool I'm developing. While doing some tests I have been getting an django.db.utils.InterfaceError: (0, '') error. I have read that it might be
Solution 1:
I know, that this is not the optimal answer, but for me trying to close 3 times the connection, and then reconnecting again worked.
try:
connections.close_all()
except:
try:
connections.close_all()
except:
try:
connections.close_all()
except:
pass
Also tried to set CONN_MAX_AGE to None in settings.py, but that did not work.
Post a Comment for "Django.db.utils.interfaceerror: (0, '')"