OK I realize you are saying I should read the doc's. So I will provide
exactly what I'm saying from the doc's.
Django handles three distinct parts of the work involved in forms:
* preparing and restructuring data ready for rendering
* creating HTML forms for the data
* receiving and processing submitted forms and data from the client
It is/possible/to write code that does all of this manually, but Django
can take care of it all for you.
I read the above and I say why do I need to subclass anything. CharField
is provided and that's all I really need because it's just a few chars
the user is going to enter. But I need to provide an ID, a SIZE, a few
things - where is that info and where are the examples? Maybe I missed
them? I've been know to mis-read stuff.
Johnf
On 03/06/2015 07:12 AM, felix wrote:
El 06/03/15 09:38, john escribió:
I can tell you what I found to be hard to understand (and I don't
think I do understand at the moment) that is how to set the HTML, the
types, ID, and any of the special attributes of the object. I
understand that I can sub-class but it's also my understanding that I
shouldn't have too. For example I want to use the new HTML 5
type=month. I'd also like to use size but so far I haven't
determined how. I did get the validation working.
Maybe a look at Rendering fields manually in the Forms section of the
doc might be helpful.
--
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-users+unsubscr...@googlegroups.com
<mailto:django-users+unsubscr...@googlegroups.com>.
To post to this group, send email to django-users@googlegroups.com
<mailto:django-users@googlegroups.com>.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/54F9C3E2.7050007%40epepm.cupet.cu
<https://groups.google.com/d/msgid/django-users/54F9C3E2.7050007%40epepm.cupet.cu?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.
--
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-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/54F9C5A2.3070600%40jfcomputer.com.
For more options, visit https://groups.google.com/d/optout.