开发者

django- to add ratings field

I just want to add an ratings filed. I've added djangoratings in installed apps and my model is

from django.db import models

from djangoratings import RatingField

class Rat(models.Model):

search= models.CharField(max_length=10)

rating = RatingField(range=5)

Whe开发者_开发问答n I syncdb it comes up with no model found djangoratings. Is there anything i want to do more.

Thanks in advance


Have you installed the package djangoratings? Following the install instructions here

It seems like syncdb can't find the models.py of the djangorating package.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜