From 876cd8909f2fd763a7c8032dbeb90f5d003f7a92 Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Wed, 13 May 2020 21:55:44 +0100 Subject: still not expunged MySQL connection --- databaseReset.py | 1 + 1 file changed, 1 insertion(+) (limited to 'databaseReset.py') diff --git a/databaseReset.py b/databaseReset.py index 33f5a66..1eaeb9c 100644 --- a/databaseReset.py +++ b/databaseReset.py @@ -262,6 +262,7 @@ class JobQueue(): self.memdumpsql() self.saveprofiles() else: + django.db.close_old_connections() # needed if MySQL running # run all the imports through :memory: first settings.DATABASES['default']['ENGINE'] = 'django.db.backends.sqlite3' settings.DATABASES['default']['NAME'] = ":memory:" -- cgit v1.2.3