When working with tornado's html template, it is recommended to use static_url instead of hard-coding the path for static files. For instance,
<link rel="stylesheet" type="text/css" href="{{static_url("css/frontpage.css")}}">
However, I encountered an issue when trying to implement a similar approach in an external "frontpage.css" file:
body {
background-image: static_url("img/bgimg.jpg");
background-repeat: no-repeat;}
Although I can simply hard-code the path as "/static/img/bgimg.jpg", I believe there should be a more elegant solution to this problem. Any suggestions on how to handle this would be greatly appreciated!