Console commands - $
Python console - >>>
$ ipython
>>> from database import init_db
>>> init_db()
python app.py
- normal_user
- admin
- project_manager
/register
/login
/logout
/ (home for normal user)
/admin (home for admin. Only admin users can access this page )
/create_project (only project_managers, admins can access this page)
$ ipython
>>> from database import db_session
>>> from models import User
# get user
>>> u1 = db_session.query(User).get(1)
>>> u1.role = 'admin'
>>> db_session.add(u1)
>>> db_session.commit()