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
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')
>
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_
3 matches
Mail list logo