summaryrefslogtreecommitdiffstats
path: root/databaseReset.py
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@klebos.com>2021-03-31 21:51:17 +0100
committerPhilip Sargent <philip.sargent@klebos.com>2021-03-31 21:51:17 +0100
commit7cccf4daf15f16f3b7b4dc7909862fc2839caf4f (patch)
treec7d01dc580db7d1ce7adce46b3ee172ae645558a /databaseReset.py
parente1cf43c260c75b3e047d02c49d8e26b2bb14e153 (diff)
downloadtroggle-7cccf4daf15f16f3b7b4dc7909862fc2839caf4f.tar.gz
troggle-7cccf4daf15f16f3b7b4dc7909862fc2839caf4f.tar.bz2
troggle-7cccf4daf15f16f3b7b4dc7909862fc2839caf4f.zip
move *_views files to /views/*
Diffstat (limited to 'databaseReset.py')
-rw-r--r--databaseReset.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/databaseReset.py b/databaseReset.py
index 7b3b1be..c900181 100644
--- a/databaseReset.py
+++ b/databaseReset.py
@@ -96,16 +96,12 @@ def reinit_db():
if django.db.connections.databases['default']['ENGINE'] == 'django.db.backends.sqlite3':
with transaction.atomic():
management.call_command('makemigrations','core', interactive=False)
- management.call_command('makemigrations','expopages', interactive=False)
management.call_command('migrate', interactive=False)
management.call_command('migrate','core', interactive=False)
- management.call_command('migrate','expopages', interactive=False)
else:
management.call_command('makemigrations','core', interactive=False)
- management.call_command('makemigrations','expopages', interactive=False)
management.call_command('migrate', interactive=False)
management.call_command('migrate','core', interactive=False)
- management.call_command('migrate','expopages', interactive=False)
print(" - done migration on: " + settings.DATABASES['default']['NAME'])