The best approach is for the Django/DB devs to create these fields (and 
forms) in advance for the users to enter data.

If you want users to add "key/pair" type data which is not known in 
advance, look to adding a JSON column to your table; see:
https://www.postgresql.org/docs/14/datatype-json.html

On Sunday, 23 January 2022 at 14:37:55 UTC+2 [email protected] wrote:

> Ohh you want create custom fields in forms
>
>
> Take input, select, textarea tags, make them their own fields but save all 
> of these in fields in one table with types and max values all of the 
> attributes of tags 
>
>
> Finally show then what they chosen 
>
> On Sun, 23 Jan 2022 at 2:28 PM, Prashanth Patelc <[email protected]> 
> wrote:
>
>> Dear Django users,
>>
>> I need some information regarding Django models, I would like to know is 
>> there any way to 
>> create Django models through frontend or can we create models by super 
>> admin. Kindly share any tutorials or any examples available.
>>
>> Example:
>> we are create models in django
>> like below fields 
>> ===================
>> class modelname(models.Model):
>>        id = models.PrimeryKey(auto_now_add=true)
>>        name =models.CharField()
>>        salary =models.DecimalField()
>>
>> But my concern is create model name and fields like in html or super 
>> admin can do
>>
>> ===================
>> => he will enter values in variables with appropriate field type.
>>  for eg., "name char type", "Salary decimal field" and so on..
>> =>When the user enter data into application it should directly store in 
>> database in the form of tables and rows..
>>
>> Regards;
>> Prashanth
>> email : [email protected] 
>>
>> -- 
>> 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 view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/CAMCU6Co2CysGZ_ZHrFW5XJEregFhR6pdZS3i%2BJkLvVsvBqnUOQ%40mail.gmail.com
>>  
>> <https://groups.google.com/d/msgid/django-users/CAMCU6Co2CysGZ_ZHrFW5XJEregFhR6pdZS3i%2BJkLvVsvBqnUOQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/2c4ee760-b695-44d4-87b0-dd05ad1d372bn%40googlegroups.com.

Reply via email to