Questions tagged [staticfilehandler]

18 questions
0
votes
2 answers

Default file in Tornado's StaticFileHandler

I have following Application configuration: settings = { 'default_handler_class': BaseHandler } app = web.Application([ (r'/', IndexHandler), (r'/ws', SocketHandler), (r'/js/(.*)', web.StaticFileHandler, {'path':…
Julian Rubin
  • 1,175
  • 1
  • 11
  • 23
0
votes
1 answer

Using self.render() in a StaticFileHandler

I'm trying to extend StaticFileHandler in such a way that I can process file requests but call self.render(filename, **kwargs) on the file to actually serve it to the client. (Yes, I realize that at that point it's no longer a static file per…
Jules
  • 14,200
  • 13
  • 56
  • 101
0
votes
1 answer

IIS7 Staticfilehandler changing GIF file colors

Environment: 2 IIS7 servers, 1 appears to be compressing images the other is not, i want to turn off the compression. I have a site running on two IIS7 server, when serving images from one server the GIFs look fine, when i serve them from the other…
missaghi
  • 5,044
  • 2
  • 33
  • 43
1
2