I have the next situation. I have nginx and uwsgi configured. And have simple html page:
html = """
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>GET handler</title>
<link rel="stylesheet" type="text/css" href="http://192.168.136.129/css/style.css" >
</head>
<body>
<table>
<thead>
<tr>
<th>Parameters</th>
<th>Item</th>
</tr>
</thead>
<tbody>
{}// Here python adds parameters.
</tbody>
<tfoot></tfoot>
</table>
</body>
</html>"""
This page is modified by python script with uwsgi server. The problem is that such configuration leads to the situation when client needs to access nginx twice: first to load html, next to load css external file. If I dont configure nginx to load css files separately and put css file from local folder like this:
<link rel="stylesheet" type="text/css" href="../css/style.css" >
nothing works. I surfed stackoverflow site and people say that I need to relate to http server once again to load css. I consider it inefficiently. Is there any way I can load CSS file together with html?