Dynamic database tables in django

I am working on a project that requires me to create a table for each user who logs onto the website using that user's username. The columns in the table are the same for each user.

During research, I found these are dynamic Django models . I am not sure how to use django-mutant for this. Also, is there a way to do this without using any external applications?

PS: The backend I'm using is Mysql

+4
source share
2 answers

An interesting question that can be of great interest.

- . , , ( , , ).

SQL-, . , , SQL- "" ( , , ..).

(), , , ( - , ). , , .

, Django (, , ) ( , ). , , , (, Django-, , Django ).

, . , , . , , . SO .

+5

, " ". , type('table_with_username', (models.Model,), attrs) django.core.management .

+2

Source: https://habr.com/ru/post/1529639/


All Articles