Replies: 1 comment
-
I don't know how Flask-Security works, so I won't be able to help with its exact design. As the deprecation says, setup should be done before running the application, such as in a factory function. I can think of a few ideas for an extension:
Adding to |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I was reading this: #4605
Looks like this has been deprecated. I completely agree that forcing overhead for the lifetime of an app just for a one-time operations is the wrong thing. However - in that issue, there weren't any use cases outlined. I have one. A different solution would be fine by me.
I develop an extension - Flask-Security(-Too) - it needs to interact with some other extensions (Flask-Babel and WTF(csrf)). Since there isn't any concept of ordering of initializing extensions - using @before_first_request is a hook for being able to look at the ENTIRE Flask ecosystem configuration and make decisions of how FS will interact with those other extensions prior to the first request.
Could the app.run() method trigger something?
Beta Was this translation helpful? Give feedback.
All reactions