![]() This post briefly compares how django-guardian and ZenStack solve row-level permissions, respectively. ZenStack is a toolkit built as a power extension to Prisma ORM, and one of its focuses is access control. It allows you to establish permissions between users/groups and objects, manages the underlying permission database tables, and provides APIs for configuring and checking such permissions.įortunately, if you choose to use the Prisma ORM in your new stack, you can use ZenStack to achieve similar functionalities with less effort. ![]() Many users have been using the popular django-guardian package to implement row-level permissions. Django has a built-in permissions feature, but it's limited to model-level control, i.e., if a user or group has X access to model type Y. These pieces fit together very well and are sufficient for replacing most of the goodies Django provides. Prisma: ORM + database migration (Django's model layer).NextAuth: authentication (Django's authentication).Next.js: URL routing, SSR, and page building with ReactJS (Django's view + template layer).A popular and powerful Javascript/Typescript equivalent stack for Django can be the following combination: Moving from one framework to another takes careful planning and execution, especially when you're changing language at the same time. Why? The following post gives an excellent explanation: However, in the past few years, Django, like most non-JS stacks, is losing its grounds to JS-based full-stack frameworks like Next.js, Remix, Nuxt, etc. ![]() It’s also a strongly opinionated framework that offers patterns for almost everything you do, making you feel well-guided during development. It’s a huge so-called “battery-included” framework covering many aspects of web development: authentication, ORM, forms, admin panels, etc. Django is a popular Python-based web framework.
0 Comments
Leave a Reply. |