Oh, ok.  I wasn't sure if it was something specific to calling it 'static'
or not.  That'll work, then.

One question, though.  Say I want to support compressing static html/text
files with gzip or deflate (where the client supports it, of course), like
Google does.  How would I do that?

I'm just using web.py for my server, and not using WSGI (that I know of).

On Jan 17, 2008 6:23 PM, lukaszt <[EMAIL PROTECTED]> wrote:

>
> I'm reading this list everyday and i think that at least FAQ should be
> expanded...
>
> On 17 Sty, 23:43, Adam Atlas <[EMAIL PROTECTED]> wrote:
> > On 17 Jan 2008, at 17:35, inhahe wrote:
> >
> >
> >
> > > 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?
> >
> > No, if you're using web.py's built-in HTTP server, it automatically
> > handles any directory named "/static/" for you. If you're using some
> > other HTTP server, then you'll need to specially configure it, in a
> > way that will depend on the circumstances. (Also, in that case, it
> > doesn't need to be named "static".) What HTTP server & WSGI adapter
> > are you using?
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to