Re: Custom forms in Django admin?

2019-04-08 Thread Erik van widenfelt
Hi Kevin See Admin forms Staying within the admin, you can create your own form class (forms.ModelForm) and specify it in the ModelAdmin declaration. See also django modelforms

Custom forms in Django admin?

2019-04-08 Thread Kevin Olbrich
Hi! Is it possible to add a form to the Django admin? Models are no problem but I have a slightly more complex requirement (still less than a full view with templates, etc.). Kind regards Kevin -- You received this message because you are subscribed to the Google Groups "Django users" group.

Re: Add value to database without using forms in django

2017-09-30 Thread Mitul Tyagi
Yup did it.save() method. I wanted to know if we need to create form for saving or other way's are present also...I got the answer. Thanks for the reply On Saturday, September 30, 2017 at 9:19:41 PM UTC+5:30, Derek wrote: > > Yes, its a strange question. > > You can of course always add a ne

Re: Add value to database without using forms in django

2017-09-30 Thread Derek
Yes, its a strange question. You can of course always add a new method to the City class: class City(models.Model): ... def get_cities(self): return ''.join([self.city1, self.city2, self.city3, self.city4, self.city5])) and then store those in Name; but from a design POV, proba

Re: Add value to database without using forms in django

2017-09-30 Thread Constantine Covtushenko
Hi Mitul, Can you clarify a little bit more your question? What are you trying to resolve? You asked: "How it will be done...?" It is not clear what exactly you are trying to be done. I guess that it my be saving cities into model 'cityval' fields. Am I correct? If so you can do something like t

Add value to database without using forms in django

2017-09-30 Thread Mitul Tyagi
I have a model named "Name" which stores the list of all cities present in other model named "City". How can it be done internally in the views.py without using forms. Here is the code of models.py " # -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models

Re: What determines initial number of forms in Django modelformset_factory?

2016-12-28 Thread Duane Gregory
Perfect. Thank you! On Wednesday, December 28, 2016 at 12:43:39 PM UTC-7, Farhan Khan wrote: > > I believe its the "extra" parameter. > By default, the size is the number of objects you pass it. You can set > that value to 0 by doing YourObject.objects.none() > > On Wednesday, December 28, 2016 a

Re: What determines initial number of forms in Django modelformset_factory?

2016-12-28 Thread Farhan Khan
I believe its the "extra" parameter. By default, the size is the number of objects you pass it. You can set that value to 0 by doing YourObject.objects.none() On Wednesday, December 28, 2016 at 7:17:31 AM UTC-5, Duane Gregory wrote: > > My model formset is producing an initial 7 forms, as seen he

What determines initial number of forms in Django modelformset_factory?

2016-12-28 Thread Duane Gregory
My model formset is producing an initial 7 forms, as seen here: I would like to alter that number, but cannot see how. view and form for ref: def micro_log_create(request): MicroLogFormSet = modelformset_factory(Micro_Log, form=MicroLogForm, max_num=4, extra=0) if request.method == 'PO

Displaying multiple forms in django

2016-07-01 Thread peter harvy Mugisha
Would like to display three forms on a single page using the twitter bootstraps nave tabs kinder style -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-

Re: Re: how to design custom forms in django with bootstrap

2016-06-21 Thread 1351552...@qq.com
u need read how to use css file by django :https://docs.djangoproject.com/en/1.9/intro/tutorial06/ before this u need download bootstrap in ur location disk,and add in the of ur html. ww From: Ikram Ulhaq Date: 2016-06-21 05:02 To: Django users Subject: Re: how to design custom forms in

Re: how to design custom forms in django with bootstrap

2016-06-21 Thread Jani Tiainen
Hi, If you're unsure what markup should look a like, you can create initial HTML as you have done it with form.as_p (or whatever you used to make working form). Then open then source of page and copy to and start applying bootstrap CSS/html tags/attributes. You should then get working form.

Re: how to design custom forms in django with bootstrap

2016-06-21 Thread Babatunde Akinyanmi
Hello Ikram, You still didn't give enough details. For example, does it submit and successfully or does it not? Anyway, I can see some problems in your markup. 1. I do not see any form tag ( <\form>) in your markup. 2. More importantly, your form input elements do not have a name attribute.

Re: how to design custom forms in django with bootstrap

2016-06-20 Thread Ikram Ulhaq
sir i want to design a custom form in django that will store data in database...i done this with built in django forms but i can't be able to design with bootstarp or css. data not inserted if i create my own custom form like Email address Email address some

Re: how to design custom forms in django with bootstrap

2016-06-20 Thread Ikram Ulhaq
sir i want to design a custom form in django that will store data in database...i done this with built in django forms but i can't be able to design with bootstarp or css. data not inserted if i create my own custom form like Email address Email address some

Re: how to design custom forms in django with bootstrap

2016-06-20 Thread Babatunde Akinyanmi
Hello Ikram, It's going to be difficult to help you without more information about the problem. If you give information about what you have tried and what's failing, you will get more helpful answers. On Jun 20, 2016 12:56 PM, "Ikram Ulhaq" wrote: > Hi everyone! > i am new in django and want to d

how to design custom forms in django with bootstrap

2016-06-20 Thread Ikram Ulhaq
Hi everyone! i am new in django and want to design custom form in bootstarp that can use to send data to database.i made form successfully but values not inserted in database.please help -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsub

Re: Forms in Django

2016-03-20 Thread Fred Stluka
Stanislav, If you have any more questions, feel free to post them here. BTW, one thing I forgot to mention about the flexibility of the ORM is that you can have it access multiple databases from the same app, by setting DATABASE_ROUTERS to refer to a class that tells it things like which DB to u

Forms in Django

2016-03-20 Thread Stanislav Vasko
Hello, as a noob in Django, i will ask noob question about Forms, because i cant find. I have working app, based on Bootstrap with theme and custom css. Rather than Django admin i want to create/edit data from my fields. I tried to use Django forms, but no luck. It looks... bad :) Its simple,

Re: Forms in Django

2016-03-19 Thread Stanislav Vasko
Ufff, i hope there is another way. Something working so simple like passing data from View to Template with direct access like {{ company.name }} or {{ company.phone }}. I dont see the point why to modify Model and how it helps with styling form. -- You received this message because you are su

Re: Forms in Django

2016-03-19 Thread Fred Stluka
Stanislav, Look at how you defined the fields of your Form class. You probably defined the phone field as something like: phone = forms.CharField( required = True, max_length = 50, label = u'Phone', ) Change it to: phone = forms.CharField( required = True, max_len

Re: Forms in Django

2016-03-19 Thread Fred Stluka
Stanislav, Try these: {{ form.title.value }} {{ form.title.label }} {{ form.title.errors }} etc. --Fred Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/ Bristle Software, Inc -- http://bristle.com -- Gla

Re: Forms in Django

2016-03-19 Thread Stanislav Vasko
This is exactly what im trying. But if i enter *{{ form.title }}* i get not the data to use in form, but whole: ** But as i study doc, there is no simple way like Django is providing in other part. So, maybe Fred's way is a good one (but quite strange) and still dont know how i will make Fiel

Re: Forms in Django

2016-03-19 Thread Stanislav Vasko
Outstanding answer, many thanks! This is exactly what i thought there must be :) Dne sobota 19. března 2016 2:43:31 UTC+1 Fred Stluka napsal(a): > > Stanislav (aka Stanley?), > > As my company motto says: "Glad to be of service!". > > I'm very impressed with Django. It's a mature product that d

Re: Forms in Django

2016-03-19 Thread Stanislav Vasko
This is exactly what i was looking for, many thanks! Now i can render form i need and like. Now i will test and i hope it will be same easy to write data back to db. Many thanks, Stanley Dne pátek 18. března 2016 20:50:37 UTC+1 Fred Stluka napsal(a): > > Stanislav, > > Try these: > > {{ form.ti

Re: Forms in Django

2016-03-19 Thread James Bennett
First of all, notice the suggestion was to make the change on your *form* class, not the model -- forms are where you can specify that a particular widget + attributes should be used on a particular field. Though it's also possible to do things in the template itself if you know your way around th

Re: Forms in Django

2016-03-18 Thread 술욱
2016-03-18 15:17 GMT-03:00 Stanislav Vasko : > Ufff, i hope there is another way. Something working so simple like > passing data from View to Template with direct access like {{ company.name > }} or {{ company.phone }}. I dont see the point why to modify Model and how > it helps with styling form

Re: Forms in Django

2016-03-18 Thread Fred Stluka
Stanislav (aka Stanley?), As my company motto says: "Glad to be of service!". I'm very impressed with Django. It's a mature product that does a good job of: "Making simple things easy, and complex things possible" It has good simple default behaviors, but also hooks that you can use to dri

Materialize forms in Django using C9.io

2015-11-20 Thread gabriel patron
Hi guys, I'm using cloud9 as a virtual environment and i get this error: Command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip_build_ubuntu/django-materialize-forms/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'e

Re: How to Process Multi Step Forms in Django?

2015-05-05 Thread Bernardo Brik
Hi Ken, The problem with using Session is that the data will still be there when you finish your “wizard". You have to manually delete it. It is state, which is not good. Each request to your server should be an decoupled operation. It’s ok to store in Session global state, like the current languag

Re: How to Process Multi Step Forms in Django?

2015-05-05 Thread Ken Nguyen
Hi Bernardo, I appreciate the feedback. I've heard of many ways to pass data between methods in views such as session, write to a file, or use formwizard. It is still a problem accessing the session from the "cleaned_data"? This is my first time hearing about query string, care to explain or

Re: How to Process Multi Step Forms in Django?

2015-05-05 Thread Bernardo Brik
Hi Ken, This is a good solution. I like the part that you are redirecting instead of rendering directly form2 from form1 view, that was a code smell that I missed. I don’t like that you are using Session to save the data. You could run into problems of having to invalidate that, clean data, when to

Re: How to Process Multi Step Forms in Django?

2015-05-05 Thread Ken Nguyen
I've finally figured it out after weeks of troubleshooting and here's how I do it. In the original post, my views takes in the request from form1 and renders it to form2. I would get the dreadful "Management Form Data is Missing" error no matter what I did and it led to asking a bunch of quest

Re: How to Process Multi Step Forms in Django?

2015-05-04 Thread Ken Nguyen
Nevermind what I said on my last post, something is internally wrong with my second form. It can't even render when I hard coded the first_name, last_name and the checkboxes. Still getting Management Form Data is Missing. {% load staticfiles %} User Information User

Re: How to Process Multi Step Forms in Django?

2015-05-04 Thread Ken Nguyen
Hi Bernardo, Using your hidden method works. I can see the "hidden" value from Form2 but how do I use those hidden information in form2 so it can redisplay correctly? First time around, it will use the variable from form1. The second time around it should use the hidden information without t

Re: How to Process Multi Step Forms in Django?

2015-05-04 Thread Bernardo Brik
Hi Ken, You are getting this error because you are missing this line in your template: {{ formset.management_form }} Take a look into the documentation: https://docs.djangoproject.com/en/1.8/topics/forms/formsets/#using-a-formset-in-views-and-templates You need to carry the information to your sec

Re: How to Process Multi Step Forms in Django?

2015-05-04 Thread Ken Nguyen
Thank you for the input. I've already tried what you've suggested but still the same result, "Management Form Data is Missing." It's not going to know the "first_name" and "last_name" the second time around since I have the variable {{ info.first_name }} and {{ info.last_name }} My* form2.

Re: How to Process Multi Step Forms in Django?

2015-05-02 Thread Bernardo Brik
You should add the same fields (first_name and address) to form2 and render them with hidden inputs. You can try to make form2 inherit from form1 and just add the checkbox. On Friday, May 1, 2015 at 9:58:28 PM UTC-3, Ken Nguyen wrote: > > I've made some attempted to use formwizard but there wasn'

How to Process Multi Step Forms in Django?

2015-05-01 Thread Ken Nguyen
I've made some attempted to use formwizard but there wasn't much documentation about it so I decided to stay with the basic. I've successfully obtained and display the data from the first form to the second form and added some checkbox next to the data to allow user to choose whether to overw

Re: How to filter results using forms in Django/Python (best approach) ?

2015-02-25 Thread C. Kirby
t;>>>> I also think that in forms.py the correct way to write is: >>>>>> >>>>>> def filter_job_candidates(job): >>>>>> assert self.is_valid() >>>>>> job_candidates = Job.objects.applied_to.all() >>>>>> >>>>&

Re: How to filter results using forms in Django/Python (best approach) ?

2015-02-25 Thread Ronaldo Bahia
r am I wrong? >>>>> >>>>> Sorry for bothering... >>>>> >>>>> >>>>> >>>>> Em segunda-feira, 23 de fevereiro de 2015 10:50:49 UTC-3, Vijay >>>>> Khemlani escreveu: >>>>>> >>&

Re: How to filter results using forms in Django/Python (best approach) ?

2015-02-24 Thread C. Kirby
Khemlani escreveu: >>>>> >>>>> Oh, if it is that line I missed a parenthesis in the my previuos >>>>> snippet in the filter of haircolor >>>>> >>>>> job_candidates = job_candidates.filter(candidate__candidatelook__ &g

Re: How to filter results using forms in Django/Python (best approach) ?

2015-02-23 Thread Vijay Khemlani
lter of haircolor >>>> >>>> job_candidates = job_candidates.filter(candidate__candidatelook__ >>>> haircolor=self.cleaned_data['haircolor']) >>>> >>>> You also need to change the other filter >>>> >>>> job_candid

Re: How to filter results using forms in Django/Python (best approach) ?

2015-02-23 Thread Ronaldo Bahia
didates = job_candidates.filter(candidate__candidatelook__ >>> haircolor=self.cleaned_data['haircolor']) >>> >>> You also need to change the other filter >>> >>> job_candidates = job_candidates.filter(status= >>> self.cleaned_data['

Re: How to filter results using forms in Django/Python (best approach) ?

2015-02-23 Thread Vijay Khemlani
the other filter >> >> job_candidates = job_candidates.filter(status= >> self.cleaned_data['status']) >> >> But you should ble able to detect that kind of errors, those are Python >> things, not something specifically about Django. >> >> >

Re: How to filter results using forms in Django/Python (best approach) ?

2015-02-23 Thread Ronaldo Bahia
ia > wrote: > >> I have just updated my code in stackoverflow: >> >> http://stackoverflow.com/questions/28637326/how-to-filter-results-using-forms-in-django-best-approach >> >> *Ronaldo Bahia * >> Diretor | JobConvo.com >> Tel: 11 3280 6971 >>

Re: How to filter results using forms in Django/Python (best approach) ?

2015-02-23 Thread Vijay Khemlani
//stackoverflow.com/questions/28637326/how-to-filter-results-using-forms-in-django-best-approach > > *Ronaldo Bahia * > Diretor | JobConvo.com > Tel: 11 3280 6971 > > 2015-02-22 23:16 GMT-03:00 Vijay Khemlani : > >> Well, I think you can continue posting the updated code her

Re: How to filter results using forms in Django/Python (best approach) ?

2015-02-23 Thread Ronaldo Bahia
I have just updated my code in stackoverflow: http://stackoverflow.com/questions/28637326/how-to-filter-results-using-forms-in-django-best-approach *Ronaldo Bahia * Diretor | JobConvo.com Tel: 11 3280 6971 2015-02-22 23:16 GMT-03:00 Vijay Khemlani : > Well, I think you can continue posting

Re: How to filter results using forms in Django/Python (best approach) ?

2015-02-22 Thread Vijay Khemlani
(candidate) >> context['candidate_list'] = candidates >> context['form'] = form >> >> return context >> >> >> On Sat, Feb 21, 2015 at 9:57 AM, Ronaldo Bahia >> wrote: >> >>> Hi Vijay, >>&g

Re: How to filter results using forms in Django/Python (best approach) ?

2015-02-22 Thread Ronaldo Bahia
context['form'] = form > > return context > > > On Sat, Feb 21, 2015 at 9:57 AM, Ronaldo Bahia > wrote: > >> Hi Vijay, >> >> Thanks for your response. >> I've just updated my question in stackoverflow 'cause I forgot to sh

Re: How to filter results using forms in Django/Python (best approach) ?

2015-02-22 Thread Ronaldo Bahia
27;] = candidates > context['form'] = form > > return context > > >> On Sat, Feb 21, 2015 at 9:57 AM, Ronaldo Bahia wrote: >> Hi Vijay, >> >> Thanks for your response. >> I've just updated my question in stackoverflow

Re: How to filter results using forms in Django/Python (best approach) ?

2015-02-21 Thread Vijay Khemlani
y, > > Thanks for your response. > I've just updated my question in stackoverflow 'cause I forgot to show my > forms. > > What I need is to enable a user (company) to filter results (candidates) > based on forms selection (candidates' status and candidates' hairco

Re: How to filter results using forms in Django/Python (best approach) ?

2015-02-21 Thread Ronaldo Bahia
n't know how to make this in my detailview. See the link: http://stackoverflow.com/questions/28637326/how-to-filter-results-using-forms-in-django-best-approach Thanks Em sábado, 21 de fevereiro de 2015 00:33:34 UTC-2, Vijay Khemlani escreveu: > > It's not clear what's the pu

Re: How to filter results using forms in Django/Python (best approach) ?

2015-02-20 Thread Vijay Khemlani
candidates by haircolor, according to the model > CandidateLook and by status, according to CandidateToJob model. > > Thanks in advance. > > Here is my code: > > http://stackoverflow.com/questions/28637326/how-to-filter-results-using-forms-in-django-best-approach > > --

How to filter results using forms in Django/Python (best approach) ?

2015-02-20 Thread Ronaldo Bahia
ce. Here is my code: http://stackoverflow.com/questions/28637326/how-to-filter-results-using-forms-in-django-best-approach -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it,

Re: Editing forms in django

2013-10-18 Thread Sandeep kaur
On Fri, Oct 18, 2013 at 1:09 PM, amanjot kaur wrote: > What should I need to do in django, if I want to edit the information > filled in django, like we edit our profile in facebook after filling > once? That means editing the already saved data? Assuming you are using a ModelForm, use the insta

Editing forms in django

2013-10-18 Thread amanjot kaur
What should I need to do in django, if I want to edit the information filled in django, like we edit our profile in facebook after filling once? -- Amanjot Kaur Blog: kauramanjot35.wordpress.com -- You received this message because you are subscribed to the Google Groups "Django users" group.

Re: am new to use forms in django..

2012-07-01 Thread manish girdhar
hii..thanks for the concern ... yeha i have gone through it..and now that problem is solved.. On Sun, Jul 1, 2012 at 5:33 PM, pankaj anand wrote: > Have you gone through this ? > > https://docs.djangoproject.com/en/dev/topics/forms/?from=olddocs > > > On Saturday, 30 June 2012 01:09:47 UTC+5:

Re: am new to use forms in django..

2012-07-01 Thread pankaj anand
Have you gone through this ? https://docs.djangoproject.com/en/dev/topics/forms/?from=olddocs On Saturday, 30 June 2012 01:09:47 UTC+5:30, rick wrote: > > > > On Sat, Jun 30, 2012 at 12:09 AM, rick wrote: > >> i dont knw where to make a form...right now i am making form in model.py >> ,with t

Re: am new to use forms in django..

2012-06-29 Thread manish girdhar
On Sat, Jun 30, 2012 at 12:09 AM, rick wrote: > i dont knw where to make a form...right now i am making form in model.py > ,with the name Student_loginForm class..and when i make a template to > run on servererror comes is > > TypeError at /record_system/studentid > > 'DeclarativeFiel

am new to use forms in django..

2012-06-29 Thread rick
i dont knw where to make a form...right now i am making form in model.py ,with the name Student_loginForm class..and when i make a template to run on servererror comes is TypeError at /record_system/studentid 'DeclarativeFieldsMetaclass' object is not iterable thanks in advance.

Re: Howto crypt forms in Django?

2010-11-01 Thread ckar...@googlemail.com
Hi Cal, thanks for your informations. Now it's clear. Christian On 1 Nov., 13:27, "Cal Leeming [Simplicity Media Ltd]" wrote: > Hi Christian, > > Can I just also mention, that relying on encrypted forms (based on a > static key from the server) is not very good practice. > > At the very most, y

Re: Howto crypt forms in Django?

2010-11-01 Thread Cal Leeming [Simplicity Media Ltd]
Hi Christian, Can I just also mention, that relying on encrypted forms (based on a static key from the server) is not very good practice. At the very most, you can rely on it for client side obfuscation, but don't ever rely on it for security. An SSL certificate is almost certainly the way

Re: Howto crypt forms in Django?

2010-11-01 Thread ckar...@googlemail.com
Okay , thank you all. Christian On 1 Nov., 12:45, Jirka Vejrazka wrote: > > is there a way not to send form data in plain-text format? I've found > > jCryption for PHP ("In short words jCryption is a javascript HTML-Form > > encryption plugin, which encrypts the POST/GET-Data that will be sent >

Re: Howto crypt forms in Django?

2010-11-01 Thread Jirka Vejrazka
> is there a way not to send form data in plain-text format? I've found > jCryption for PHP ("In short words jCryption is a javascript HTML-Form > encryption plugin, which encrypts the POST/GET-Data that will be sent > when you submit a form."). Is there a way to crypt data without using > SSL?

Re: Howto crypt forms in Django?

2010-11-01 Thread ckar...@googlemail.com
No, no SSL, no HTTPS. Just client side and server side decryption/ encryption. On 1 Nov., 12:22, What you get is Not what you see wrote: > Using https connection? > > On Mon, Nov 1, 2010 at 1:19 PM, ckar...@googlemail.com < > > ckar...@googlemail.com> wrote: > > Hi everybody, > > > is there a way

Re: Howto crypt forms in Django?

2010-11-01 Thread What you get is Not what you see
Using https connection? On Mon, Nov 1, 2010 at 1:19 PM, ckar...@googlemail.com < ckar...@googlemail.com> wrote: > Hi everybody, > > is there a way not to send form data in plain-text format? I've found > jCryption for PHP ("In short words jCryption is a javascript HTML-Form > encryption plugin, w

Howto crypt forms in Django?

2010-11-01 Thread ckar...@googlemail.com
Hi everybody, is there a way not to send form data in plain-text format? I've found jCryption for PHP ("In short words jCryption is a javascript HTML-Form encryption plugin, which encrypts the POST/GET-Data that will be sent when you submit a form."). Is there a way to crypt data without using SSL

Re: I think I will need some more help concerning forms in django

2010-04-26 Thread Shawn Milochik
It sounds like a case for formsets. http://docs.djangoproject.com/en/1.1/topics/forms/formsets/ Assuming you have models for these shopping cart items, you can use a formset of those items. Shawn -- You received this message because you are subscribed to the Google Groups "Django users" grou

I think I will need some more help concerning forms in django

2010-04-26 Thread xpanta
Hi, I am trying hard to understand how the forms work. It seems for me easier to create an html form with some hidden fields during runtime. and then parse them one-by-one by request.POST.keys() when the view is called. I understand, however, that django forms have great importance in building we

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 suppl

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 wrote: > > > > > The problem I's having is that my

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 there'

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-usable templates because I

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, MMRUser wrote: >> >> >> >> > I have an pre-built H

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 form (means I design the HTML form > > separately

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: > > >   >  Username >  * >   >   >

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 k