pranavgupta1234 / rqmonitor

Flask based more dynamic and actionable frontend dashboard for monitoring Redis Queue 👩🏿‍💻 http://python-rq.org
Apache License 2.0
186 stars 24 forks source link

Static files do not load when included in an existing app as a blueprint #7

Closed natm closed 3 years ago

natm commented 4 years ago

When registering rqmonitor as a blueprint in an existing app, the blueprint expects static content to be served from the app root directory.

If the blueprint is registered at another path e.g. /rq the templates attempt to call content from /static/.... instead of /rq/static/....

I'll submit a PR to fix this shortly.

pranavgupta1234 commented 4 years ago

Hi @natm

I was looking for workarounds for this and landed here https://github.com/pallets/flask/issues/348. I have tried bunch of configurations by supplying static_url_path but no luck for now. Let me know about your approach to this.

pranavgupta1234 commented 4 years ago

Hi @natm

https://github.com/pranavgupta1234/rqmonitor/commit/77c0a5cdf45ecff49db13003f834040cbf9b7377 should have fixed this issue. Let me know if it still persists.