pallets-eco / flask-admin

Simple and extensible administrative interface framework for Flask
BSD 3-Clause "New" or "Revised" License
5.69k stars 1.56k forks source link

Can't use multiple `Admin` instances with different Bootstrap themes (`FLASK_ADMIN_SWATCH`) #2423

Open princerb opened 3 months ago

princerb commented 3 months ago

❓ How can we use different Bootstrap themes through multiple Admin instances?

👨‍💻 This is how I tried to do it:

...
app.config['FLASK_ADMIN_SWATCH'] = 'cerulean'
admin1 = Admin(app, endpoint='admin1')
app.config['FLASK_ADMIN_SWATCH'] = 'cosmo'
admin2 = Admin(app, endpoint='admin2')
...

❌ But this does NOT work, I wrote this to clarify what I want to do with my issue. Thanks!

princerb commented 3 months ago

If I solve, will PRs be viewed/merged soon?

hasansezertasan commented 2 months ago

If I solve, will PRs be viewed/merged soon?

The repo is inactive for almost over six months, so O don't think it'll be merged quickly.