The blog is simple. I just make posts with text and pictures. That being the case, I'm wondering if it is best to put my Feed class in the models.py of my blog app, or create a new app specifically for the Feed class.
Asked
Active
Viewed 35 times
0
-
1A seperate app for RSS may be overkill but it certainly is good practice and you might save yourself some time when you need a RSS app for your next Django project. – Lars Wiegman May 04 '11 at 22:41
1 Answers
0
If you're using the Django syndication framework, I would not bother creating a separate app.
Your feed class is going to be coupled to your blog model anyway, so I don't see the advantage of putting it in a separate app.
class LatestEntriesFeed(Feed):
...
def items(self):
return MyBlogEntry.objects.order_by('-pub_date')[:5]

Alasdair
- 298,606
- 55
- 578
- 516
-
Thanks Alsadir and namsral. I'm going to put it in my blog model. Makes more sense to do it that way. – secolinsky May 05 '11 at 03:30