From a432e16ed7a95c1eea6848bbee0f290fc413cf02 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Fri, 4 Dec 2015 11:07:14 +0530 Subject: [PATCH] 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. --- plinth/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plinth/__main__.py b/plinth/__main__.py index 8453bba56..82921b3a9 100644 --- a/plinth/__main__.py +++ b/plinth/__main__.py @@ -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)