If you're using the South package to handle database migrations (highly recommended), then you could just use the ./manage.py migrate appname zero
command.
Otherwise, I'd recommend the ./manage.py dbshell
command, piping in SQL commands on standard input.