简体   繁体   中英

Django-ratings CommandError for models

i installed an app django-ratings. I want to syncdb, but here is my error:

djangoratings.vote: 'user' defines a relation with the model 'auth.User',
which has been swapped out. Update the relation to point at settings.AUTH_USER_MODEL.

Iam using AllAuth for Facebook login, and custom user auth with some extra features.

In settings file i provide

AUTH_USER_MODEL = 'accountext.User'

How to fix that error from djangoratings?

Thanx

It is an open django-ratings issue: Complete Django 1.5 Custom User Model compatibility . django-ratings was made before the custom user model was implemented. It uses auth.User model directly instead of going through dynamic AUTH_USER_MODEL settings.

django-ratings is not actively maintained, pull requests are in opened state for years. I would consider not using it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM