[Solved]-Programmatically sync the db in Django

20👍

management.call_command('syncdb', interactive=False)

4👍

Works like this (at least with Django 1.1.):

from django.core.management.commands import syncdb
syncdb.Command().execute(noinput=True)
👤maersu

Leave a comment