This is definitely doable. And easy -- you can use django's generic views for it.
I recommend you pick up / download "Practical Django Projects," by James Bennett. He'll walk you through every step for creating a blog, using generic views, etc. ~Karen McNeil On Feb 21, 4:33 pm, delegb...@dudupay.com wrote: > Hello People, > > I have a blog I'm currently designing and I have a little challenge. > > I can from the view get a template to render all the blogs in the database by > fetching > articles = Article.objects.all() > from the view and then loop over it in my template like so: > {% for article in articles %} > <p>article.author</p> > <p>article.date</p> > <p>article.content</p> > {% endfor %} > This renders all the articles in my blog. > I however want it to show an article per page. > How can I achieve that. > Alternatively, I am thinking I could do a filter of articles on my home page > and the do a drill down from years, to months and then days. With title of > each article rendered such that a visitor can click on a title and then > directed to a page rendering the particular article. > Is it doable? If yes, kindly give me a lead. And if no, kindly suggest a way > out. > Thanks. > Sent from my BlackBerry wireless device from MTN -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.