Serving Static Files

124 views
Skip to first unread message

Paul Johnston

unread,
Jul 18, 2009, 10:08:44 PM7/18/09
to Paste Users
Hi,

Is there a WSGI app to serve static files? I realise it's easy to do
this in the simple case. But to make it work properly, with full HTTP/
1.1 compliance is not simple at all.

Thanks,

Paul

Sergey Schetinin

unread,
Jul 19, 2009, 12:15:13 AM7/19/09
to Paul Johnston, Paste Users
http://pythonpaste.org/modules/fileapp.html

2009/7/19 Paul Johnston <paul...@gmail.com>:
--
Best Regards,
Sergey Schetinin

http://s3bk.com/ -- S3 Backup
http://word-to-html.com/ -- Word to HTML Converter

Atsushi Odagiri

unread,
Jul 19, 2009, 3:34:45 AM7/19/09
to Sergey Schetinin, Paul Johnston, Paste Users
Sorry, I sent DM.

Hi.

> http://pythonpaste.org/modules/fileapp.html

Or use paste.cascade.
http://pythonpaste.org/modules/cascade.html#module-paste.cascade

If you wanna provide static files such as javascript/css, should use cascade.
--
/*
Atsushi Odagiri
http://blog.aodag.jp
mailto:aod...@gmail.com
*/

Sergey Schetinin

unread,
Jul 19, 2009, 3:38:00 AM7/19/09
to Atsushi Odagiri, Paul Johnston, Paste Users
Eh.. I don't think that Cascade is a good first choice, so if you need
to mix things, try URLMap first.

And certainly you can't use Cascade *in place* of FileApp.

2009/7/19 Atsushi Odagiri <aod...@gmail.com>:
Reply all
Reply to author
Forward
0 new messages