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?

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
muselesscreator's avatar
77
muselesscreator
asked 11 years ago

Comments

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.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Evgeny's avatar
13.2k
Evgeny
answered 11 years ago
link

Comments

see more comments