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_
Works like this (at least with Django 1.1.):
from django.core.management.commands import syncdb syncdb.Command().execute(noinput=True)