-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document Environment Variables #2338
Conversation
Thanks for the suggested improvement to document env var configuration on Flask-Admin; I agree this is something we're missing at the moment. We've just removed env var configuration for theming (swatch, fluid layout) and move it to a Theme config object passed to the admin instance. It looks like we still have three possible env vars: If you wanted to update the PR I'd be very grateful - if not I'll try to get around to it soon. |
|
||
This section list settings supported in the current release | ||
|
||
FLASK_ADMIN_SWATCH |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Version 2 doesn't have this anymore.
Theme for bootswatch in order to customize you UI. See https://bootswatch.com/ | ||
Example : FLASK_ADMIN_SWATCH = "simplex" | ||
|
||
FLASK_ADMIN_FLUID_LAYOUT |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Version 2 doesn't have this anymore.
Looks like we have a lot more... flask-admin/flask_admin/templates/bootstrap4/admin/lib.html Lines 259 to 285 in 68bc6de
|
🥲 We should have a consistent namespace for all of these, too. |
Maybe I would take a look when the 2.0 will be almost stabilised ? |
Thanks for flagging #2034 - agree that we should fix that interface. I've assigned myself to it and will think about what we want to do there. For now I'm going to close this PR as I'll put one up shortly that rationalises all of the config variables under a FLASK_ADMIN_ namespace and adds some documentation. |
Small contribution on documentation.
See #1694
No sure if it's the way you want to do it.. tell me