1
"""WSGI applications for serving Bazaar branches."""
5
from paste import urlparser, fileapp
7
from loggerhead.util import convert_file_errors
10
os.path.dirname(os.path.dirname(__file__)), 'static')
12
# Static things can be cached for half a day, we could probably make this
13
# longer, except for just before rollout times.
14
static_app = urlparser.make_static(None, static, cache_max_age=12*60*60)
16
favicon_app = convert_file_errors(fileapp.FileApp(
17
os.path.join(static, 'images', 'favicon.ico')))
19
robots_app = convert_file_errors(fileapp.FileApp(
20
os.path.join(static, 'robots.txt')))