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

rename flatpages as expopages to reduce confusion

This commit is contained in:
Philip Sargent
2021-03-30 21:05:27 +01:00
parent 0f024b27f0
commit cacae6a9cd
12 changed files with 23 additions and 23 deletions

View File

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