Re: A Newbie question: Need advice on how to create generic html templates with models

2008-09-25 Thread mcordes
Hi, I'm not sure generic views are the answer. It sounds to me like you're asking about reducing duplication in the templates themselves by creating something you can reuse. That something is a template tag (http://docs.djangoproject.com/en/dev/howto/custom-template-tags/). I think you probably w

Re: A Newbie question: Need advice on how to create generic html templates with models

2008-09-25 Thread Karthik Krishnan
Thanks for replying Daniel. I wanted to know if I can use generic views for web application form objects. I would like to use them to avoid duplication on html pages. On Sep 25, 1:20 pm, Daniel Roseman <[EMAIL PROTECTED]> wrote: > On Sep 25, 8:51 pm, Karthik Krishnan <[EMAIL PROTECTED]> wrote: >

Re: A Newbie question: Need advice on how to create generic html templates with models

2008-09-25 Thread Daniel Roseman
On Sep 25, 8:51 pm, Karthik Krishnan <[EMAIL PROTECTED]> wrote: > I know this may be a stupid question but please bear with me. Here is > my problem > > In views.py I have a multiple methods, where each method is mapped to > a unique model. There may be multiple methods mapped to the same > model.

A Newbie question: Need advice on how to create generic html templates with models

2008-09-25 Thread Karthik Krishnan
I know this may be a stupid question but please bear with me. Here is my problem In views.py I have a multiple methods, where each method is mapped to a unique model. There may be multiple methods mapped to the same model. But no method in views.py is mapped to multiple models. For a GET/POST re