> 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 - but not how it should be done in a view.

Did you go through the 3rd part of the tutorial on the djangosite? If  
you do that, you'll be writing your a views.py and a template as well.  
In particular: 
http://www.djangoproject.com/documentation/tutorial03/#write-views-that-actually-do-something

Although I do agree that most examples given everywhere are from  
within the Python shell, and occasionally therefore appear to lack  
some correspondence with views & templates. After a while though, you  
get used to it and instantly translate one to the other.



--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to