help with rss feed ImproperlyConfigured

15 views
Skip to first unread message

psychok7

unread,
Jul 6, 2012, 10:52:52 PM7/6/12
to django...@googlegroups.com
hi, i am trying to implement the syndicate feed framework simple rss with my program, but i get a 

ImproperlyConfigured at /latest/feed/

Give your Debt class a get_absolute_url() method, or define an item_link() method in your Feed class.
I know i am supposed to create a get_absolute_url in my Debt model, but i dont know how to do it (already seen tutorials but cant make it work)
model: 
class Debt (models.Model): 
 user = models.ForeignKey(User) 
 debt_name = models.TextField() 
 creation_date = models.DateTimeField('date created') 
 due_date = models.DateTimeField('due date') 
 info = models.TextField() 
 is_owing = models.BooleanField() 
 is_payed = models.BooleanField()
 def __unicode__(self):
        return self.debt_name

psychok7

unread,
Jul 6, 2012, 10:53:52 PM7/6/12
to django...@googlegroups.com
on my feed.py i have 

class LatestEntriesFeed(Feed):
    title = "Chicagocrime.org site news"
    link = "/blog/"
    description = "Recent Posts"

    def items(self):
        return Debt.objects.all().order_by('-creation_date')[:10]


can anyone help me?

psychok7

unread,
Jul 7, 2012, 3:27:54 PM7/7/12
to django...@googlegroups.com
anyone??


On Saturday, July 7, 2012 3:52:52 AM UTC+1, psychok7 wrote:
Reply all
Reply to author
Forward
0 new messages