You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 22, 2024. It is now read-only.
is_json() just looks at Content-Type - which in 90% of cases is fine - but in some
cases (and to be more spec-compliant) we should really be honoring the Accept header.
This adds that into all our view responses.
HI,
I am using a Flask-Themes application https://github.com/pythonhub/quokka-themes
I can customize the theme for almost all apps, even for Flask-Admin I can do it by extending the main class
But I was trying to do the same with Security
But I figured out that Security main class does not expose a render method to be ovewritten.
It is now being done directly by the views, so I suggest to have a method and use this for rendering templates, or maybe have a config variable.
So with the above setting you can do in views.py
Having its default to a normal render_template from Flask.
By now I will create a fork and implement that for my specific case.. If I got some idea I will send a PR.
What do you thing about it? @mattupstate
The text was updated successfully, but these errors were encountered: