When within a bottle template file, what is the way to reference a static file? for example this one?
<body background='/static/img/digital.gif'>
Why the above relative file fails to load the image? How can i reference it correctly? If i try it as:
<body background="{{ static_file( 'digital.gif', root='./static/img' }}">
The image also fail to render.
Why Bottle fail to render the image even if no 'static_file' function is used?
When within a bottle template file, what is the way to reference a static file? for example this one?
<body background='/static/img/digital.gif'>
Why the above relative file fails to load the image?
How can i reference it correctly? If i try it as:
<body background="{{ static_file( 'digital.gif', root='./static/img' }}">
The image also fail to render.
Sorry, the requested URL 'http://superhost.gr/static/img/digital.gif' caused an error:
Not found: '/static/img/digital.gif'
--
--
You are member of the "bottlepy" group at google groups.
See http://groups.google.de/group/bottlepy for mailing list options.
See http://bottlepy.org/ for news and documentation.
---
You received this message because you are subscribed to the Google Groups "bottlepy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bottlepy+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.