Bottlepy doesn't let me add css, anyone know how to fix this?

Ask a question+

Bottlepy doesn’t let me add css to my html even though the css link tag is in the html, anyone know how to fix this?
I tried using:

from bottle import static_file
def server_static(filename):
return static_file(filename, root=’/path/to/your/static/files’)

in the server and this in the html:

<link rel="stylesheet" type="text/css" href="tree.css">

but it still doesn’t work, can anyone me help please?

add comment

0 Answer

Your Answer