2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2025-12-14 00:27:07 +00:00

move *_views files to /views/*

This commit is contained in:
Philip Sargent
2021-03-31 21:51:17 +01:00
parent e1cf43c260
commit 7cccf4daf1
21 changed files with 85 additions and 100 deletions

View File

@@ -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'])