In the view: diary = Entry.objects.filter(status=1).order_by('-pub_date')[:5]
t = loader.get_template('cms/page.html') c = RequestContext(request,{ 'diary':diary, }) return HttpResponse(t.render(c)) And the template <ul class="linksList"> {% for entry in diary %} <li> <a href="{{entry.get_absolute_url}}" title="{{entry.title}}" >{{entry.title}}</a> </li> {% endfor %} </ul> Thanks On Mar 26, 12:59 pm, Daniel Roseman <dan...@roseman.org.uk> wrote: > On Mar 26, 11:25 am, grimmus <graham.col...@gmail.com> wrote: > > > > > Hi, > > > I have a website with 5 pages and a blog. > > > At the bottom of every page is a list of recent blog posts. > > > When i delete some blog posts they still appear in the recent posts > > list. > > > I am not using any caching. > > > If i restart the local dev server then they disappear. > > > Could anyone tell me why this is happening ? > > > Thanks > > Not without seeing the code that is generating the list. > -- > DR. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@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.