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:
@@ -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'])
|
||||
|
||||
Reference in New Issue
Block a user