Search code examples
djangomezzanine

mezzanine cms: can the values of meta fields in the form page be saved in database?


I am new to mezzanine cms. I have some questions about the form page. In the admin interface, I added a form page. On the bottom of the form page, there is a "meta" section which I can add some fields to the form page I created. My questions are:

1) for the meta fields I added, can I save the values of the fields in the database?
2) can the meta fields be from a database table fields? For example, I have a user profile model, can I use the fields in the profile model as meta fields in the form page? and how?
3) what are the purposes of the form page in mezzanine cms?

Thank you!


Solution

  • Mezzanine's Form page is for when you don't want to define your own model. It dynamically constructs a model to save entered data and potentially email it someplace. This is appropriate if the form is defined by a non-programmer admin or if the only purpose of the form is to collect data and send it somewhere.

    However, this is probably not a good choice if the purpose is to use the data in your application. For that, it is better to define your own model and use django's ModelForm.