开发者

django- to add ratings field

开发者 https://www.devze.com 2023-03-22 00:05 出处:网络
I just want to add an ratings filed. I\'ve added djangoratings in installed apps and my model is from django.db import models

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

精彩评论

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