Re: Handling a reusable form in multiple views

2009-06-29 Thread delino
Perfect. I actually realized soon after posting that option 1 would work well for this scenario, but option 2 would be a good future enhancement. Thanks for your help. On Jun 29, 11:56 am, Rajesh Dhawan wrote: > delinowrote: > > Rajesh, > > > Thanks for your response. If I post the form to a de

Re: Handling a reusable form in multiple views

2009-06-29 Thread Rajesh Dhawan
delino wrote: > Rajesh, > > Thanks for your response. If I post the form to a dedicated view that > works fine, but how do I handle validation properly in this approach. > Say the user enters invalid data, do I now need to redirect them back > to the original page and then display these errors?

Re: Handling a reusable form in multiple views

2009-06-29 Thread delino
Rajesh, Thanks for your response. If I post the form to a dedicated view that works fine, but how do I handle validation properly in this approach. Say the user enters invalid data, do I now need to redirect them back to the original page and then display these errors? That seems like it will be

Re: Handling a reusable form in multiple views

2009-06-25 Thread Rajesh D
On Jun 25, 4:43 pm, delino wrote: > Hi, > > I have a simple scenario using Django 0.96 and am looking for a > cleaner solution than what I currently have: > > I want to include a simple submission form (a few simple fields) on > most pages of my site. I have the form action set to '.' so that >

Handling a reusable form in multiple views

2009-06-25 Thread delino
Hi, I have a simple scenario using Django 0.96 and am looking for a cleaner solution than what I currently have: I want to include a simple submission form (a few simple fields) on most pages of my site. I have the form action set to '.' so that validation can be done in place and errors display