Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

model field error #16

Closed
skbohra opened this issue Jul 20, 2012 · 3 comments
Closed

model field error #16

skbohra opened this issue Jul 20, 2012 · 3 comments

Comments

@skbohra
Copy link

skbohra commented Jul 20, 2012

(1054, "Unknown column 'follow_follow.target_user_id' in 'where clause'")

I have checked the latest code from the repo, has anything changed lately?

@frbry
Copy link

frbry commented Oct 22, 2012

I'm having this issue too.

@digitalpbk
Copy link

i'm having this too, guess we are supposed to manually alter the follow table and add the field target_ classname|lower _id ?
@flashingpumpkin

This happened because I did syncdb and then did the utils.register code change, probably need to use a database migration app south to handle migrations and db changes

@flashingpumpkin
Copy link
Contributor

@digitalpbk, @frbry

You need to register Django models before running syncdb. If you do not do it, you'll run into this issue. You can fix it by creating a South migration. This might have to be documented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants