"A model class represents a database table, and an instance of that
class represents a particular record in the database table." I'm
beginning to see some light.
What I try to achieve is telling the application that, depending on
the user's authority, he may not see some data, and/or may not
> I read there:
> from django.shortcuts import render_to_response
> from mysite.polls.model import Poll
> def index(request):
>latest_poll_list = Poll.objects.all()
>
>
> What is 'latest_poll_list'? I assume it is a list, but a list of what?
> Records? Can I cycle through that list (for X
I read there:
from django.shortcuts import render_to_response
from mysite.polls.model import Poll
def index(request):
latest_poll_list = Poll.objects.all()
What is 'latest_poll_list'? I assume it is a list, but a list of what?
Records? Can I cycle through that list (for X in
> Probably another stupid question (sigh), but looking at views.py and
> having read just about all the documentation I could find (including
> the Django book), I still do not see how I can get data from a
> database into a web page. The Django book explains how it is done
> using the live
Probably another stupid question (sigh), but looking at views.py and
having read just about all the documentation I could find (including
the Django book), I still do not see how I can get data from a
database into a web page. The Django book explains how it is done
using the live interpreter -
5 matches
Mail list logo