summaryrefslogtreecommitdiffstats
path: root/databaseReset.py
diff options
context:
space:
mode:
authorPhilip Sargent <philip@Muscogee.localdomain>2020-05-13 21:55:44 +0100
committerPhilip Sargent <philip@Muscogee.localdomain>2020-05-13 21:55:44 +0100
commit876cd8909f2fd763a7c8032dbeb90f5d003f7a92 (patch)
treef31b79a6b6aeca3c86007231979ff5d91947f888 /databaseReset.py
parentac7cb45f619c637567933172b3b16a4de6197e98 (diff)
downloadtroggle-876cd8909f2fd763a7c8032dbeb90f5d003f7a92.tar.gz
troggle-876cd8909f2fd763a7c8032dbeb90f5d003f7a92.tar.bz2
troggle-876cd8909f2fd763a7c8032dbeb90f5d003f7a92.zip
still not expunged MySQL connection
Diffstat (limited to 'databaseReset.py')
-rw-r--r--databaseReset.py1
1 files changed, 1 insertions, 0 deletions
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:"