django-permissions-keeperEasy way to keep group permissions in sync between Development and Production environments | |
Download |
django-permissions-keeper Ranking & Summary
Advertisement
- License:
- BSD License
- Price:
- FREE
- Publisher Name:
- Paul Bailey
- Publisher web site:
- https://github.com/pizzapanther/
django-permissions-keeper Tags
django-permissions-keeper Description
django-permissions-keeper is a Django app that offers an easy way to keep group permissions in sync between Development and Production environments.Installation1. Install "pip install permkeep"2. Add permkeep to your installed apps in settings.py.INSTALLED_APPS = ( ... 'permkeep', ...)1. Define your group permissions in settings.py.a = Add, c = Change, d = DeleteGROUP_PERMISSIONS = ( { 'name': 'Editor', 'codes': ( ('event', 'acd'), ('newsitem','acd'), ('tag','acd'), ('category','ac'), ('peopletag','acd'), ) }, { 'name': 'Contributor', 'codes': ( ('event', 'ac'), ('newsitem','ac'), ('tag','a'), ('peopletag','a'), ) })1. Run "./manage.py setperms"This will add any groups and permissions that currently don't exist. It does not delete permissions.You can run the command several times to add permissions in the future. If the permission already exists it will skip over it.Product's homepage
django-permissions-keeper Related Software