generic views - newforms

0 views
Skip to first unread message

Victor Quiroz

unread,
Mar 30, 2008, 3:22:34 PM3/30/08
to django...@googlegroups.com
Hello, what is the difference (advantage) to use generic views or newforms


Victor

Michael

unread,
Mar 30, 2008, 3:46:45 PM3/30/08
to django...@googlegroups.com
They are two very different animals really.

Generic views work as a way to cut code from your views code (the code
that creates the httpresponse, between the url handling and the
template rendering). Newforms is the way that Django creates and
handles forms. You will generally need to use a new form inside a
view.

Documentation on each is great:
http://www.djangoproject.com/documentation/generic_views/
http://www.djangoproject.com/documentation/newforms/

hope that helps,
Michael

sector119

unread,
Mar 31, 2008, 2:55:50 AM3/31/08
to Django users
When you will read Michael's links on documentation you can use
generic views on newforms:
http://217.196.165.10/create_update.txt
They have create and update preview support also, just use
preview=True option. And object_delete can use id's like
'1/2/3/4/5/10/128' to use url's like /people/person/1/2/3/4/5/10/128/
delete/ for multiple deletes :)
Reply all
Reply to author
Forward
0 new messages