Skip to content

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

@princerb

Description

@princerb

❓ 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!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions