Django documentation shows how to put your own permissions to YourModel.Meta-class.
I’d like to have some permissions that don’t have anything to do with a certain model. They would just allow/restrict different users to access certain views/pages.
What is the preferred place to define these permission in?
Should I create a dummy model for them?
I would define this kind of permissions in the “user profile” model, if it available (see store additional information about users).
If “user profile” is not an option for some reason, you can still store additional permissions in
Usermodel.See Programmatically creating permissions in django docs, for info how to create Permissions when settingpermissionsmodel Meta attribute is not possible (ie. User model is defined in 3rd app lib).