[Python] django - Accessible url pattern only for certain group of users

Discussão em 'Python' iniciado por Stack, Março 27, 2025.

  1. Stack

    Stack Membro Participativo

    Is there a way to limit access to url pattern only for certain group of django users? for example, everything that starts with /settings/ shuld be accessible only for the administration group.

    or maybe it is possible to create a new decorator such as @group("administration") and add it to each view that is limited to the group?

    personally I prefer the second way, if possible.

    Continue reading...

Compartilhe esta Página