--
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...@googlegroups.com.
To post to this group, send email to django...@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/CAFp8GAKe7r7PWzBbFMsLk6PuR863-QU5%3D%2Bv%2BGQ4uA_yihFh3dw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
i want your opinion my friends. talk to me please , what is your opinion about django form.https://github.com/youngershen/django-laravel-validatorHello everyone:i use django since last year, and now i can not stand the django form any more, hard to use , especially custom error message , i use laravel for php development , and validator of laravel is very easy to use and very clean code , so i hack a small plugin .
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/54F984E9.2070701%40arkade.info.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/54F9BBCD.3070408%40jfcomputer.com.
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/54F9C1D7.6020007%40arkade.info.
Django handles three distinct parts of the work involved in forms:
It is possible to write code that does
all of this manually, but Django can take care of it all for you.
--
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...@googlegroups.com.
To post to this group, send email to django...@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.
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.
class CommentForm(forms.Form): name = forms.CharField(widget=forms.TextInput(attrs={'class': 'special'})) url = forms.URLField() comment = forms.CharField(widget=forms.TextInput(attrs={'size': '40'}))Cheers,
--
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...@googlegroups.com.
To post to this group, send email to django...@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/54F9CFA3.2010708%40epepm.cupet.cu.
I saws that to in the Doc's - it did not work for me with bootstrap. I did not find the cause - if there wasn't some sort of bug. I'm using Django 1.7.5 so I'll guess and say it had something to do with the interaction of the two. I have moved on to crispy-forms and all seems to work. But like I said at the start - in answer to the question "Could you provide us more in-deapth of your feeling using the django form?" I found the information provided from the doc's to be confusing and did not explain why I had to subclass. More examples are needed (and all in one doc - not link after link after link). Maybe what I'm asking for is for the tutorial to better explain the use and ways to mod the form code to get things done.
--
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+unsubscribe@googlegroups.com.
To post to this group, send email to django...@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/54FA3A9B.6080800%40jfcomputer.com.