My 2 cents - You will have to store the user preferences in a settings file on the server. I would suggest to use a JSONField for the same if you are using the PostgrSQL. Otherwise you will have to create a separate model. Saving settings in model will take more efforts. Using JSON for this would be perfect. Store this JSON on the User Model in the django, so you are basically adding an extra JSONField to the user model in django. If you store this data on a different model, you will end up writing one extra sql/orm query to fetch the settings. So, save yourself that trouble and store the settings on the user model.
Whatever user can configure, create respective key value pairs for the same. Then in every template where these settings would be required, access them using the variable *request.user.settings* (assuming you named it settings). In the templates, wherever the user can customize his view, you would write the if blocks to check if the current user has selected the respective settings or not. Accordingly they would be rendered *DYNAMICALLY*. I hope it helps :) Regards, Chetan Ganji +91-900-483-4183 [email protected] http://ryucoder.in On Mon, May 13, 2019 at 3:58 PM Devender Kumar <[email protected]> wrote: > Hi, > I want to make a web app in which user has rights to configure his > layout.Means each user can configure his layout according to his choice and > work > Like how many fields can his form have how many field he want to see in > table view of individual record view . configure theme color of his own > choice . > all these type of settings he can do for his own use. > Can any one help me with this type of architecture. > Thank you > Devender > > -- > 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 post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/b9332431-bb74-416d-b5e6-a54db73c1b56%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/b9332431-bb74-416d-b5e6-a54db73c1b56%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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 post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAMKMUjtvZ6JngGhGxgVkg%2BjNVm2J4-CgdJRcuUdzpW1aj3p2vA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

