HI, i understand why need to use generic views after i code some of my function like showing list of data, and the view is the same and i end up copy paste it , not type it (smarter huh?) , just change my db object and pass to my template.
well , generic view is come in the rescue and we can produce faster result with less code, just call the generic function in the url.py files and point to your template to render. hope help.. Mulianto On Wed, Apr 4, 2012 at 10:36 PM, Dan Gentry <d...@gentryville.net> wrote: > I use generic views - either function or class based - for the common > functionality in my apps. As Serge mentioned, a list works pretty > much the same in every application, so I just provide a few parameters > to a generic view. More complicated forms still require custom code. > > On Apr 3, 1:07 am, abisson <antoine...@gmail.com> wrote: > > Good evening, > > > > I just finished the Django 1.4 Tutorial, and I really don't understand > > the point of Generic Views in Django? As far as I can see, we wrote > > more code than before, and what other example would make the Generic > > Views better than normal views? > > > > Thanks for the clarifications! > > -- > 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 > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- 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 django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.