Damjan
unread,Dec 20, 2012, 10:30:46 PM12/20/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to gevent: coroutine-based Python network library
> application = SharedDataMiddleware(application, {
> '/hello/template/': os.path.join(os.getcwd(), 'template')})
This should work, if you:
1. *run* the script from a directory that has a 'template'
subdirectory
2. you request the url /hello/template/style.css for the file
os.getcwd()/'template'/style.css
SharedDataMiddleware will call the wrapped application if it doesn't
find a file, so that's what you see.