No Description
python
flask

__init__.py 222B

12345678910111213
  1. from flask import Blueprint
  2. main = Blueprint('main', __name__)
  3. from . import views, errors
  4. from ..models import Permission
  5. @main.app_context_processor
  6. def inject_permissions():
  7. return dict(Permission=Permission)