The Flask documentation says :
that you can register blueprints multiple times though not every blueprint might respond properly to that. In fact it depends on how the blueprint is implemented if it can be mounted more than once.
But I can't seem to find out what must be done to mount a blueprint safely more than once.
It's hard to answer a question like this, because it is so general.
First, your Blueprint needs to be implemented in a way that makes no assumptions about the state of the app object it will be registered with. Second, you'll want to use a configurable url scheme to prevent route conflicts.
There are far more nuanced components of this, but without seeing your specific code and problem it's about as specific as I feel I can get.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With