mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25: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:
1 parent
61445f8b1a
commit
a432e16ed7
1 file changed
+1
-1
+1
-1
@@ -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)
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user