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 authored and James Valleroy committed 2015-12-05 09:33:23 -05:00
1 parent 61445f8b1a
commit a432e16ed7
1 file changed
+1 -1
+1 -1
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)