Blueprint initialization, can I run a function before first request to blueprint
Is it possible to run a function before the first request to a specific blueprint ? @my_blueprint.before_first_request def init_my_blueprint(): print 'yes' Currently this will yield the following error: AttributeError: 'Blueprint' object has no attribute 'before_first_request' The Blueprint equivalent is called @Blueprint.before_app_first_request : @my_blueprint.before_app_first_request def init_my_blueprint(): print('yes') The name reflects that it is called before any request, not just a request specific to this blueprint. There is no hook for running code for just the first request to be