On 10/4/06, Patrick J. Anderson <[EMAIL PROTECTED]> wrote: ... > def main(request): > posts = Post.objects.filter(is_approved = > True).order_by('-time_added')[:5] > t = loader.get_template('homepage.html') > c = RequestContext({ > 'latest_posts': posts, > })
That's it there, I think. RequestContext takes a request object as its first parameter. Try c = RequestContext(request, { 'latest_posts': posts, }) Cheers, Alan -- Alan Green [EMAIL PROTECTED] - http://bright-green.com --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---