mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-03-25 09:21:10 +00:00
Use migrate management command instead of syncdb
- syncdb has been deprecated in Django 1.7 in favor of migrate command. - In Django 1.9 it has been removed. Django 1.9 has already hit Debian unstable.
This commit is contained in:
parent
61445f8b1a
commit
a432e16ed7
@ -264,7 +264,7 @@ def configure_django():
|
||||
logger.info('Configured Django with applications - %s', applications)
|
||||
|
||||
logger.info('Creating or adding new tables to data file')
|
||||
django.core.management.call_command('syncdb', interactive=False)
|
||||
django.core.management.call_command('migrate', interactive=False)
|
||||
os.chmod(cfg.store_file, stat.S_IRUSR | stat.S_IWUSR | stat.S_IRGRP)
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user