This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description
=======================
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 History

Release History

0.2

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.1

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
django-view-acl-0.2.tar.gz (7.6 kB) Copy SHA256 Checksum SHA256 Source Dec 4, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting