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:
Sunil Mohan Adapa 2015-12-04 11:07:14 +05:30 committed by James Valleroy
parent 61445f8b1a
commit a432e16ed7

View File

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