How does django elegantly generate classes dynamically from the data sent from the front end?

1 how does django elegantly generate models classes dynamically from the data sent from the front end? Or no matter how the framework dynamically generates classes based on the desired properties? And then add it to the models file?
2 how does django generate tables based on generated model classes at run time?

for the first question, I only think of type,. Is there any other way?

Jun.11,2021

Hello, how did you solve this problem later

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1bf1e2d-30afb.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1bf1e2d-30afb.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?