Hi, Generating fields is possible,
but for your recipe app, that's absolutely not a good thing to do. Regards, Aldian Fazrihady On Sun, Mar 24, 2019 at 1:54 AM Barkalez XX <[email protected]> wrote: > Thank for you answer. > > > I did not know that fields could be generated in the database from > FrontEnd. > > It occurs to me to put a "Add ingredient" button and produce a new field > in the recipe table, but I do not know how to do that. > > El sábado, 23 de marzo de 2019, 17:54:24 (UTC+1), Aldian Fazrihady > escribió: >> >> Hi, >> >> I don't think that's a good idea to frequently add new field to a >> database table. >> >> A field in form doesn't mean that it will also be a field of a table >> database. >> You can make a new ingredient field in a form to become a new row of a >> database table. >> You just need to properly design your database schema. >> >> Regards, >> >> Aldian Fazrihady >> >> On Sun, Mar 24, 2019 at 12:46 AM Barkalez XX <[email protected]> wrote: >> >>> >>> I would like to know if it is possible to create a new field in a table >>> from the FrontEnd. For example, in a form to create recipes, not all >>> recipes contain the same number of ingredients. At first I thought about >>> putting a high number of ingredients to enter in the form to create a >>> recipe, but that's not pretty. I think it would be better for the user to >>> add fields in the form as needed. Although thinking well, if that were >>> done, who would execute the command makemigrations and migrate ?, it >>> occurred to me to create a high number of fields for the ingredients but >>> that did not appear in the FrontEnd form and that they were appearing as >>> needed by the user. >>> >>> -- >>> 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 [email protected]. >>> To post to this group, send email to [email protected]. >>> Visit this group at https://groups.google.com/group/django-users. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/django-users/c416f450-0172-45e2-9242-4704c4aca421%40googlegroups.com >>> <https://groups.google.com/d/msgid/django-users/c416f450-0172-45e2-9242-4704c4aca421%40googlegroups.com?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 [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/0c94870c-b8df-40eb-89ff-b54565fe4070%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/0c94870c-b8df-40eb-89ff-b54565fe4070%40googlegroups.com?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 [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAN7EoAakLOq4hNFBOe1vsuhDf0mY3BxWkHtny8jWeTGxd6c5dA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

