Re: Trying to display a list

2008-01-06 Thread Malcolm Tredinnick
On Sun, 2008-01-06 at 12:38 -0800, chiefmoamba wrote: > I'm sure this will be very easy for most of you... > > I am trying to display a list. [...] > If I view source, I get this: > > There are books > The title of your books: [, ] That's the default represe

Re: Trying to display a list

2008-01-06 Thread Alex Koshelev
ill be very easy for most of you... > > I am trying to display a list. > > in views.py, I have: > > from mysite.books.models import Book > from django.http import HttpResponse > > def book_list(request): > book = Book.objects.all().order_by('title') >

Trying to display a list

2008-01-06 Thread chiefmoamba
I'm sure this will be very easy for most of you... I am trying to display a list. in views.py, I have: from mysite.books.models import Book from django.http import HttpResponse def book_list(request): book = Book.objects.all().order_by('title') return render_to_