I am really sorry for the stupid question Import Contex whit the C (the doc is right) all work like a charm
Thanks On 10/1/06, Brett Parker <[EMAIL PROTECTED]> wrote: > > On Sun, Oct 01, 2006 at 11:20:08AM +0200, Marco Amato wrote: > > def index(request): > > list = Evento.objects.all().order_by('-data')[:5] > > t = loader.get_template('index.html') > > ----> c = context({'list': list,}) > > return HttpResponse(t.render(c)) > > > > I'm not sure what you've got imported, but the Context should have a > C... from my views I have: > > from django.template import Context, loader > > Cheers, > -- > Brett Parker --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---