Exception: Flask-SuperAdmin is already associated with an application.
suzanshakya opened this issue · 1 comments
suzanshakya commented
It seems that flask-superadmin doesn't work with multiple Flask application instances at once. I use Application Factories pattern to create application as needed to aid unittests and to support multiple configurations.
def init_app(self, app):
"""
Register all views with Flask application.
`app`
Flask application instance
"""
if self.app is not None:
raise Exception('Flask-SuperAdmin is already associated with an application.')
noirbizarre commented
Same issue for me.
I will try to submit a PR soon.