While developing the app flask-admin properly loaded the multiple stylesheets and javascript files. But once deployed the path to those files is incorrect, as well as the links to the views.
I am deploying the app at http://mydomian.com/services/
. It seems that the paths are missing the "services" part.
I am configuring the flask-admin as:
admin = Admin(app, index_view=MyHomeView(), name='DB Admin', template_mode=None, static_url_path = '', endpoint='admin', url='/treatabolome_service/')
So the issues are:
- The stylesheets and javascript files appear as
/admin/vendor/jquery.min.js?v=3.3.1
instead of/services/admin/vendor/jquery.min.js?v=3.3.1
- The links to the views appearsas
http://mydomian.com/services//PBTable/
instead ofhttp://mydomian.com/services/admin/PBTable/
How I have to fill the static_url_path
, endpoint
, and url
to solve this issue?