Ask Your Question

Adding askbot to existing app, column auth_user.status does not exist

asked 2014-09-26 05:14:17 -0600

gsiddardha gravatar image

I have an existing django application to which I want to add askbot. I included askbot code to the project folder. The current project structure is:

  |- ...
  |- ...

According to the instructions, I merged the and files. Next, I ran python syncdb. But I am getting the following error:

DatabaseError: column auth_user.status does not exist
LINE 1: ...uth_user"."is_active", "auth_user"."date_joined", "auth_user...

Is there something I've missed in the process? I use south for migrations. Does this have any conflicts? I've been stuck in this step for the past couple of days. Any help would be awesome!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2014-09-26 11:21:34 -0600

geekofalltrades gravatar image

What do the contents of your file look like? Specifically, the INSTALLED_APPS setting?

Askbot monkey-patches the hell out of User. As a result, it needs to come pretty high up in the INSTALLED_APPS list, so that its changes to User are propagated along to all of your other apps. Essentially, you should copy-paste the INSTALLED_APPS setting from the setup templates that come with Askbot, then re-add all of your project's apps below that.

It's also interesting that you have askbot included in your project directory structure. Typically, you install Askbot with pip or with its, and it ends up installed alongside your other Python packages, where you can then import it from. I don't know off the top of my head whether that's a problem.

I've been working full time for the last three months on getting Askbot plugged into an existing project. In my case, the existing project behaved so poorly with the monkey-patch that I had to fork the Askbot source and undo it. Integrating Askbot is not easy; before you get in too deep, you might want to consider whether it would be possible for you to have Askbot run as a separate project. Good luck.

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


Asked: 2014-09-26 05:14:17 -0600

Seen: 1,133 times

Last updated: Sep 26 '14