django-roles-access / master Goto Github PK
View Code? Open in Web Editor NEWDjango view access security by roles (groups).
License: MIT License
Django view access security by roles (groups).
License: MIT License
Add to both model next generic fields:
• description (text)
• created (datetime)
• updated (datetime)
ViewAccess data model can add next fields:
#: Description for the view access restriction.
#: When view access was created.
#: When was the last update of the view access.
TemplateAccess data model can add next fields:
#: Description for the template tag restriction.
#: When template tag was created.
#: When was the last update of the template tag.
When creating a ViewAccess object, selection of a Group should be only required when “By Roles” type was selected.
checkviewaccess should output information with csv format so it can be imported by other tool.
Is possible to export site’s view access in csv format with the next columns:
App Name: Application name to which belong the view being reported.
Type: ['None','NOT_SECURED', 'PUBLIC', 'SECURED']
View Name: The name of the vie or blank.
Url: The regex (django 1.10 and django 1.11) or pattern (django 2+)
Status: Normal, Warning, Error.
Status description: If there is a description for the state it should be reported here; eg cause of error or warning.
python manage.py checkviewaccess --output-format csv
Make possible to filter access to views report by a list of roles or views.
It is also possible to use checkviewaccess
using a role name (
:class:django.contrib.auth.models.Group
name) for getting all views where
such role have access:
python manage.py checkviewaccess <role_name>
If in place of role name, checkviewaccess
is used with a view name, It
will report the configured access to the view (configured with Django roles
tools):
python manage.py checkviewaccess <view_name>
Actually an application can have 4 type:
Add a new type: ‘DISABLED’, with default behavior disabling all access to the views of the application.
An advantage could be, for example, install a new application and keep it “off-line” for a while.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.