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)
Source:stackexchange.com