[Answer]-'QuerySet' object has no attribute 'url' when using feedparser in Django

1👍

Well, it actually doesn’t – Python isn’t lying to you. See, source is a QuerySet, a list-like structure of results, not a single result. If it’s your Feed model that should have a url attribute, then look it up on it and not the query set:

for item in source:
    rss = feedparser.parse(item.url)

Leave a comment