Ask Your Question
1

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

asked 2014-03-12 07:40:18 -0600

muselesscreator gravatar image

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?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2014-03-13 06:37:46 -0600

Evgeny gravatar image

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.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2014-03-12 07:40:18 -0600

Seen: 1,322 times

Last updated: Mar 13 '14