django-ratings proving frustrating; need insight -


i've been trying 2 weeks implement highly regarded django-ratings 0 success.

i've followed directions, not detailed, , cannot figure out how present means user submit rating template.

there no directions on how load template tags associated it, resulted in errors. after looking through code, appears "ratings" proper way load tags within template, employed that.

i added 'djangoratings' settings.py.

the following model:

    rating = ratingfield(range=5) 

i did following urls.py:

from djangoratings.views import addratingfrommodel  url(r'rate-my-post/(?p<object_id>\d*)/(?p<score>\d*)/', addratingfrommodel(), {     'app_label': 'report',     'model': 'story',     'field_name': 'rating', }), 

added template:

{% rating_by_user user on story.rating vote %} 

and nothing appears. no means user vote. nothing.

i cannot figure out may wrong here , after 2 weeks of tweaking , trying different methods, nothing works.

if has idea of required present interface user vote using app, extremely grateful.

this link app here https://github.com/dcramer/django-ratings#rating_by_user


Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c# - Copy ObservableCollection to another ObservableCollection -

All overlapping substrings matching a java regex -