On 7/4/07, Vizcayno <[EMAIL PROTECTED]> wrote: > > Hello: > I know that Django provides 3 ways in using Web forms: Admin Forms, > Generic views and New Forms where Admin forms is the easiest one to > use. > What I would like to know is: > 1) Which determinant aspects should force me to use Generic Views > instead of Admin Forms? And
There is no fundamental difference between generic view and the Admin form. The Admin application is really just an introspective application that sets up a generic view for every model in the application. A lot of work has gone into making the CSS and javascript nice and pretty for the admin view, but under the hood, its essentially the same code. > 2) Which determinant aspects should force me to use new forms instead > of Generic Views? A generic view is an abstraction of the most common types of view that a web application will need: - show me the contents of a single object - Let me edit the fields of a single object - Show me a list of objects etc If you have a view that doesn't meet this basic requirements, you'll need to write your own view. If that view requires the entry of form data, you'll need to use newforms. Yours, Russ Magee %-) --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---