I have tried several iterations and read all I can find in this forum and googling but still can make this simple task work. I have the following link find the image.
have set the following on web config page.
URL DIRECTORY
/static/ "/user/bsneddon/files/home/bsneddon/mysite/static"
<img src="/static/2-14.jpeg" alt="family picture" style="width:304px;height:228px;">
The file also exists in the static directory above.
I have tried with this code in my bottle_app.py
`@route('/static/<filename>')
def server_static(filename): return static_file(filename, root='/user/bsneddon/files/home/bsneddon/mysite/static')
@route('/static/<filepath:path>') def server_static(filepath): return static_file(filepath, root='/user/bsneddon/files/home/bsneddon/mysite/static')
The render template code is as follows
@route('/')
def hello_world():
return template('first_template.tpl')
Have also tried above with /home/bsneddon/mysite/static path.
Bill