Main features¶
Once configured, all administration for secure access is done from admin site at runtime.
Not extra code required:
- When using
django_roles_access
middleware no more code is required. - In case of using decorator or mixin of
django_roles_access
all that is needed is to decorate the view function or to prepend the mixin in class based view definition.
- When using
Access to views can be controlled with two elements:
- View access object: An object created and configured in admin site.
- Application classifications in project settings file.
If
django_roles_access
is installed but nothing else is done (only adddjango_roles_access
to settings.INSTALLED_APPS) there will be no change in the behavior of the views.django_roles_access
register an action calledcheckviewaccess
that will report Django sites views access security when usingdjango_roles_access
tools. To use it just:django_roles_access
registers an action calledcheckviewaccess
that will report the security to access the views that uses the tools provided bydjango_roles_access
python manage.py checkviewaccess