I\'m trying to sync my db from a view, something like this:
from django import http from django.core import management def syncdb(request): management.call_
management.call_command('syncdb', interactive=False)
Works like this (at least with Django 1.1.):
from django.core.management.commands import syncdb syncdb.Command().execute(noinput=True)