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

Menu