Wednesday, September 17, 2014

Re: Generic way to create forms (not admin forms)

Look at how mezzanine CMS does it. I think Stephen called it form for forms at one stage. It uses standard relational schema for everything.

On 18/09/2014 1:07 am, "Collin Anderson" <cmawebsite@gmail.com> wrote:
 We store the field structure using JSON and then use that information to construct a django ModelField (so django can render the html and do validation).

If you just want to be able to create HTML form elements (without backend validation), I think storing them as HTML is the way to go, rather than somehow translating them to JSON and back. If needed, you can store extra information using class="" or data-*="".

--
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-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/678735de-3d19-4dfe-a317-7d9305da9691%40googlegroups.com.
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+unsubscribe@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/CAHqTbjmTQQ%3D0SWuWj8Gn4gUPZjRDmBJuA7UQaHnjHOWDZfrWFg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment