echo 'show tables;' \ | python manage.py dbshell \ | sed -n 2,\$p \ | awk 'BEGIN {print "set foreign_key_checks=0;"} { print "drop table `" $1 "`;"}' \ | python manage.py dbshell