diff options
author | Philip Sargent <philip.sargent@klebos.com> | 2021-03-30 21:05:27 +0100 |
---|---|---|
committer | Philip Sargent <philip.sargent@klebos.com> | 2021-03-30 21:05:27 +0100 |
commit | cacae6a9cd40828ca03671d47f2fc70306f16d8d (patch) | |
tree | f51bcaf43346946dd3cf617237e668f15cf4d065 /databaseReset.py | |
parent | 0f024b27f017bd9ce5cf08de4a0753a75752f993 (diff) | |
download | troggle-cacae6a9cd40828ca03671d47f2fc70306f16d8d.tar.gz troggle-cacae6a9cd40828ca03671d47f2fc70306f16d8d.tar.bz2 troggle-cacae6a9cd40828ca03671d47f2fc70306f16d8d.zip |
rename flatpages as expopages to reduce confusion
Diffstat (limited to 'databaseReset.py')
-rw-r--r-- | databaseReset.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/databaseReset.py b/databaseReset.py index bf91ccf..34529a5 100644 --- a/databaseReset.py +++ b/databaseReset.py @@ -33,7 +33,7 @@ except: raise print(" - Memory footprint after loading Django: {:.3f} MB".format(resource.getrusage(resource.RUSAGE_SELF)[2]/1024.0)) -import troggle.flatpages.models +import troggle.expopages.models import troggle.core.models import troggle.core.models_survex @@ -97,16 +97,16 @@ 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','flatpages', 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','flatpages', interactive=False) + management.call_command('migrate','expopages', interactive=False) else: management.call_command('makemigrations','core', interactive=False) - management.call_command('makemigrations','flatpages', 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','flatpages', interactive=False) + management.call_command('migrate','expopages', interactive=False) print(" - done migration on: " + settings.DATABASES['default']['NAME']) |