Categories:
django,
postgresql
Posted by: bjb
To get rid of all the data in your database (but keep the tables):
./manage.py flush
That is pretty much equivalent to:
sudo -u postgres dropdb appdb sudo -u postgres createdb -O me appdb ./manage.py syncdb
I even got asked the questions about creating the superuser after running the ./manage.py flush command.