First time here? Check out the FAQ!

Revision history  [back]

How to correctly sync database with Askbot app?

Hi,

I followed the tutorial on installing Askbot:

http://askbot.org/doc/initialize-database-tables.html

When I run "python manage.py syncdb", I get the following message in my terminal:

Not synced (use migrations): - askbot.deps.django_authopenid - askbot

I then ran the two following commands:

  • python manage.py migrate askbot
  • python manage.py migrate django_authopenid

But my tables are not up to date. If I try to login in my local Askbot web application, I get an error message saying "Unknown column 'askbot_anonymousanswer.question_id".

Looking at this table in MySQL, the field is named "question_post_id". My feeling is that Askbot hasn't created the right database schema.

But I don't know any alternative. Does somebody know what I did wrong? How do I know the database version is sync with the application? I couldn't find a table with the database version.

Thanks for your help