mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-03-11 09:04:54 +00:00
Print django migrate messages only in debug
This commit is contained in:
parent
1e3060900b
commit
314eddfcae
@ -246,8 +246,9 @@ def configure_django():
|
||||
logger.info('Configured Django with applications - %s', applications)
|
||||
|
||||
logger.info('Creating or adding new tables to data file')
|
||||
verbosity = 1 if cfg.debug else 0
|
||||
django.core.management.call_command('migrate', '--fake-initial',
|
||||
interactive=False)
|
||||
interactive=False, verbosity=verbosity)
|
||||
os.chmod(cfg.store_file, stat.S_IRUSR | stat.S_IWUSR | stat.S_IRGRP)
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user