> > > 2. what's the best way to serve static files (html, gif, etc.)? > > make directory named static under the root and put there all the > static files (js, css, images, etc.) > in your code refer to them as '/static/path_to_file' > >
But how do you actually serve them? Do you just use print statements? like if tail[:8]=="/static/": print open(tail, 'rb').read() ? wouldn't printing it mess with the binary data? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web.py" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/webpy?hl=en -~----------~----~----~----~------~----~------~--~---
