On Mon, 2011-01-10 at 09:09 -0800, Euan Goddard wrote:
> As far as I know Django maintains a persistent connection to the
> database server and restarting the server without restarting the
> client isn't possible. We never restart our live database server in
> production (we fail over to a secondar
Hi Brennan,
You can force Django to reopen the database connection by:
>>> from django.db import connection
>>> connection.close()
Django will then automatically reconnect to the database when it needs
it. Obviously, it's up to you to figure out where to put this code in
your application (it mig
As far as I know Django maintains a persistent connection to the
database server and restarting the server without restarting the
client isn't possible. We never restart our live database server in
production (we fail over to a secondary server so that the app is
essentially only vulnerable for a f
3 matches
Mail list logo