Example usage of the flask-permissions project. Please see that project for most details.
To run this project, use the ./manage.py
executable file. I bundled a bunch of useful utilities in it, some common flask project commands like run
, and shell
, as well several under db
: create
, init
, drop
, and its own shell
command to start mysql with your configuration.
To test that the configuration & flask-permissions are working, do the following...
- Make sure you have a database URI configured at the
SQLALCHEMY_DATABASE_URI
environment variable. - Make sure you have created that database (You could use
./manage.py db create [dbname]
). - Create this project's tables with
./manage.py db init
. - You can then run
./manage.py shell
, and try creating some users or roles, to actually test out the project.