Show instant error page when database host is unavailable - django
You need to keep checking the socket connection  status continuously in a script that will inform you regarding the same.
In case you are more concerned with the performance issues then you can make use of a in memory caching system like redis etc.
cheers :-)
I want to show instant error page when database host is unavailable. Default behavior for django is that ,when user requests , it takes long time and then displays error page.
Is there is any way to display some error instantly when database host is unreachable or database host is invalid with django without any delay ? Any suggestions ?