A reconnecting backend for django on postgres
- Run the command
pip install django-postgreconnect
in your terminal. - In your settings.py file change the database backend to
django-postgreconnect
. - Celebrate that your Django app will now reconnect if your Postgres drops connections.