Re: How to use pre-built HTML forms in Django

2010-03-10 Thread esatterwh...@wi.rr.com
I would build a form using the forms library - subclass forms.Form and let django do the validation for you and return the errors. Once you have that bit in place, you can add your javascript enhancements and logic ontop of it. if need js funcionality for specific fields that Django doesn't

Re: How to use pre-built HTML forms in Django

2010-03-09 Thread MMRUser
So as per your knowledge can u suggest a proper way of getting data from a form but not as mentioned in http://www.djangobook.com/en/2.0/chapter07/ that way is too rusty. Thanks. On Mar 9, 7:28 pm, rebus_ wrote: > On 9 March 2010 15:22, MMRUser

Re: How to use pre-built HTML forms in Django

2010-03-09 Thread MMRUser
The problem I's having is that my HTML form depends upon lot of external resources like javascript validation libraries and lots of css on fields (and some may differ from each other), and I think that I don't need to use re-usable templates because I just want to design a one simple form so

Re: How to use pre-built HTML forms in Django

2010-03-09 Thread rebus_
On 9 March 2010 15:22, MMRUser wrote: > The problem I's having is that my HTML form depends upon lot of > external resources like javascript validation libraries and lots of > css on fields (and some may differ from each other), and I think that > I don't need to use

Re: How to use pre-built HTML forms in Django

2010-03-09 Thread rebus_
On 9 March 2010 05:54, MMRUser wrote: > Thanks another doubt,what about the css mappings class="field text > medium" do they also need to include in the class definition in > Django. > > On Mar 9, 9:21 am, rebus_ wrote: >> On 9 March 2010 05:04,

Re: How to use pre-built HTML forms in Django

2010-03-08 Thread MMRUser
Thanks another doubt,what about the css mappings class="field text medium" do they also need to include in the class definition in Django. On Mar 9, 9:21 am, rebus_ wrote: > On 9 March 2010 05:04, MMRUser wrote: > > > > > I have an pre-built HTML

Re: How to use pre-built HTML forms in Django

2010-03-08 Thread rebus_
On 9 March 2010 05:04, MMRUser wrote: > I have an pre-built HTML form (means I design the HTML form > separately) and I need to reuse it with Django form class > (django.forms), So how do I incorporate my HTML form with Django form > class. for example > > HTML: > > >  

How to use pre-built HTML forms in Django

2010-03-08 Thread MMRUser
I have an pre-built HTML form (means I design the HTML form separately) and I need to reuse it with Django form class (django.forms), So how do I incorporate my HTML form with Django form class. for example HTML: Username * How do I map this HTML in to Django form definition, I