B
B
bituke2021-09-04 17:46:40
Django
bituke, 2021-09-04 17:46:40

How to write architecture correctly?

Good afternoon! The task costs following:
Let's admit in system there are 4 groups of users.
Administrator, department head, team leader, worker.
How to properly organize permission sharing in django for all users? Suppose there is a button, the head of the department, the head of the group, and in some cases the worker has the right to press it.
Where to prescribe all this logic? How to register these groups? I tried to do it through dzhang groups, but there is some kind of template functionality that is not capable of flexibility.
It turns out that you need to write different templates for different groups? And different functions for each user?
Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nikita Mokhovikov, 2021-09-04
@mohovoy

Look at the documentation , it describes how to use the rights for any user

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question