labd / django-perms-provisioner Goto Github PK
View Code? Open in Web Editor NEWProvision Django instances with groups and permissions
License: MIT License
Provision Django instances with groups and permissions
License: MIT License
Configuration files now always need to be defined when running the commands.
It would be useful to be able to set a fixed path in your settings where to store/read the configuration file.
This way, you can ship the configuration file with your python package, and incorporate it in your project.
PERMS_PROVISION_CONFIG = os.path.join(PROJECT_ROOT, "assets", "permissions.yml")`
Useful if for example if you want to periodically reset the entire group permissions.
Read the configuration file and update the user permissions in the database so that it matches the pre-defined config
YAML
pro: clean syntax and layout, easy to read
con: need extra dependency in project
JSON
pro: no need for extra dep; can use python's own JSON module
pro2: complies with django's default configuration formats (think of the datadumps for example)
con: a bit less clean (but still quite clean tho) then YAML
Mainly used as reference for the user the easy the configuration of the user permissions:
Some ideas:
--updateConfig (-u)
--sort (-s)
Hi thanks for developing this amazing app but it doesnot work.
getting error like below:
KeyError: ('x', 'x') // both x are same name.
at the end of the traceback it says = django.contrib.contenttypes.models.DoesNotExist: ContentType matching query does not exist.
please help!
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.