Lino has its own user management¶
This document explains why Lino replaces Django's user management and permission system. See Introduction to permissions for an introduction to Lino's permission system. See User management à la Lino for getting started with user management.
In Lino we opted to replace Django's database-stored user groups and permissions system by a system which uses pure Python code objects. While Django stores permissions as rows in the database, in Lino they are entirely defined by the application code as class-based user roles.
Defining, granting and managing permissions can become a hell when you maintain a complex application which runs on different sites, with different variants, different versions.
We believe that a purely code-based approach is more suitable than information stored in a database because
you can use powerful features of the Python language (inheritance, modularization, ...)
every detail and every change is version-controllable and documentable
As a side effect, Lino's approach brings a solution for an old limitation of Django's approach which provides no means for defining instance-specific permissions.
This design decision of course has a price : application code developed for the
Lino framework won't work in plain Django, and applications for Django need a
wrapper for making them usable in Lino. Also they cannot easily be mixed
together. Though there are exceptions, e.g.