First time here? Check out the FAQ!
1

How do I wipe an askbot (delete all forum/user info)?

I have installed an askbot server and have been working on testing out our conversion method for getting data from our old forum into this one. By virtue of this, the askbot is currently cluttered with trash users/questions and is going to be a bit worse before I am done.

Is there an easy utility/command for wiping/truncating the database and starting over?

muselesscreator's avatar
77
muselesscreator
asked 2014-03-12 07:40:18 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

1

Yes here is how this can be done in Django, assuming your database tables are fully migrated:

python manage.py flush --noinput
python manage.py migrate --fake --noinput

The second step will restore the migrations history, so that later new migrations can be applied.

Evgeny's avatar
13.2k
Evgeny
answered 2014-03-13 06:37:46 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments