Re: howto display table data in html?

2008-03-31 Thread Jaap
"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

Re: howto display table data in html?

2008-03-31 Thread Evert Rol
> 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

Re: howto display table data in html?

2008-03-31 Thread Jaap
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

Re: howto display table data in html?

2008-03-31 Thread Evert Rol
> 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

howto display table data in html?

2008-03-31 Thread Jaap
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 -