If you define this, it works the same.
- url: /img
static_dir: img
but it won't:
- url: /img
static_dir: static/img
So check your path first.
And if you use template, it's not necessary to make your template html files
as static files.
Static files means visitors can visit it by a url, but
To be a bit more precise
The (html) files you use for the templates MUST NOT be static.
Otherwise the template python code can't read them.
You can't read the content of a static file with
f = open('file.html','r')
data = f.read()
f.close()
This is because static files are stored in a different