First time here? Check out the FAQ!
1

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

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:

woot/
|-askbot/
  |- ...
  |- ...
  |-urls.py
|-woot/
  |-settings.py
  |-urls.py
|-manage.py

According to the instructions, I merged the settings.py and urls.py files. Next, I ran python manage.py 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!

gsiddardha's avatar
11
gsiddardha
asked 2014-09-26 05:14:17 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

0

What do the contents of your settings.py 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 setup.py, 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.

geekofalltrades's avatar
13
geekofalltrades
answered 2014-09-26 11:21:34 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments