On Tue, Jul 12, 2011 at 9:12 PM, Andre Terra <andrete...@gmail.com> wrote:
> May I ask if you are managing to do this (and, if so, how) without >> writing duplicate logic? >> > > This, to me, is a key area for improvement. Aside from the development > challenge the idea imposes, an extra issue with writing DRY validation for > django and javascript is that the project doesn't officially endorse any > javascript library (there's been extensive discussion about this), but > nobody says it's not okay to write an app that uses jQuery, for example. > A probable approach would be , probably, for the form renderer to *automatically* clone the validation logic written in clean() to js? (!!) > My issue with uni-form and the like is that these apps get hard to extend > once you find a fringe-case for your app. I tried using it once and soon > enough I was writing so much custom code that I decided to drop uni-form > altogether. > Can you educate us on the use-case; i am just curious. > History shows good ideas *do *get implemented, and Alex Gaynor is, imho, > the developer to look at for examples on how to write quality django apps > (for instance, take a look at https://github.com/alex/django-filter/ > <https://github.com/alex/django-filter/%20>which is pretty small, but very > django-like, even though he's not really proud of the API for that app in > particular) > An awsum app that is! I was even more excited when i looked at its code. So little, but so powerful! -V -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.