=======================
Django Views ACL plugin
=======================
Views ACL plugin is a Django app that provides:
- Automatic permissions generation for django views, based on urlpatterns defined in urls.py
- Control Access to Django Views
Views ACL is flexible plugin, it allows to define list of views,
for which permissions will be generated, or define excluded list.
Permission can be assigned for user by admin page.
By default if permission for view is generated, the user doesn't have access
until the admin won't give permission for the user.
Quick start
-----------
1. Add "view_acl" to your INSTALLED_APPS setting::
INSTALLED_APPS = (
...
'view_acl',)
2. Include 'view_acl.middleware.CustomViewProcessMiddleware' to MIDDLEWARE_CLASSES.
3. Add ACL_ALLOWED_VIEWS variable to settings.py.
Views ACL plugin generate permission for all views defined in ACL_ALLOWED_VIEWS.
Only those views should be checked for access::
ACL_ALLOWED_VIEWS=('polls.*',)
In this case, permissions will be generated for all views from polls app.
4. You can also define ACL_EXCLUDED_VIEWS in settings.py::
ACL_EXCLUDED_VIEWS = ('django.*',)
5. If you want to change default name and codename prefix for permission,
define ACL_CODE_PREFIX and ACL_NAME_PREFIX variables in settings.py::
ACL_NAME_PREFIX = 'Myite ACL '
ACL_CODE_PREFIX = 'mysite_acl_view'
6. Call method for automatic permissions generation based on urlpatterns in urls.py::
view_acl.autodiscover()
7. Assign view permissions to user by admin page.
Default permission name:
"ACL app.module.view"
Django Views ACL plugin
=======================
Views ACL plugin is a Django app that provides:
- Automatic permissions generation for django views, based on urlpatterns defined in urls.py
- Control Access to Django Views
Views ACL is flexible plugin, it allows to define list of views,
for which permissions will be generated, or define excluded list.
Permission can be assigned for user by admin page.
By default if permission for view is generated, the user doesn't have access
until the admin won't give permission for the user.
Quick start
-----------
1. Add "view_acl" to your INSTALLED_APPS setting::
INSTALLED_APPS = (
...
'view_acl',)
2. Include 'view_acl.middleware.CustomViewProcessMiddleware' to MIDDLEWARE_CLASSES.
3. Add ACL_ALLOWED_VIEWS variable to settings.py.
Views ACL plugin generate permission for all views defined in ACL_ALLOWED_VIEWS.
Only those views should be checked for access::
ACL_ALLOWED_VIEWS=('polls.*',)
In this case, permissions will be generated for all views from polls app.
4. You can also define ACL_EXCLUDED_VIEWS in settings.py::
ACL_EXCLUDED_VIEWS = ('django.*',)
5. If you want to change default name and codename prefix for permission,
define ACL_CODE_PREFIX and ACL_NAME_PREFIX variables in settings.py::
ACL_NAME_PREFIX = 'Myite ACL '
ACL_CODE_PREFIX = 'mysite_acl_view'
6. Call method for automatic permissions generation based on urlpatterns in urls.py::
view_acl.autodiscover()
7. Assign view permissions to user by admin page.
Default permission name:
"ACL app.module.view"
Release files for django-view-acl 0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django-view-acl-0.2.tar.gz | 7.6 kB | Details |
Release files / django-view-acl-0.2.tar.gz
| Download URL | django-view-acl-0.2.tar.gz |
|---|---|
| Size | 7.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a28dc2cb6419613e38498691e4a891a6dd628bd0a325330b03c45d333f24874a
|
|
BLAKE2b-256 checksum How to use checksums |
5340db8e7e84aa4cad62b4c563012490c8ad52a2ad4f421a83ee9a59031dd92d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |