Re: Database design

2022-01-23 Thread Derek
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.ht

how to Build a referral and earning system

2022-01-23 Thread SKYLINE TV
i am currently working on a system, when a user register and do a particular task they will be credited with a certain amount, also the app will have a referral system every user will have a unique referral id when you invite somebody with your code when there do a task you will also earn a

Re: order_by on the basis of time difference (updated_at - created_at)

2022-01-23 Thread Aadil Rashid
Thank you very much Django family for your positive response, and especially to *@Fabio C. Barrionuevo da Luz,* Adding another field to the QuerySet using the *"**annotate"* function really helped and solves the problem like a charm! as side by @Lalit Suthar Thank you once again everyone for shar

Re: Database design

2022-01-23 Thread Madhusudhan Reddy
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 wro

Database design

2022-01-23 Thread Prashanth Patelc
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 field