On Wed, 2011-01-05 at 01:29 -0800, Dominik wrote: > Hi there, > > in my app sqlalchemy/route-based app, in __init__.py's main I have > something like: > config = Configurator(settings=settings) > config.add_static_view('static', 'sunrise:static') > config.add_route('live', '/live', view='sunrise.views.live', > view_renderer='json') > config.add_route('today', 'today', view='sunrise.views.today', > view_renderer='json') > > How can I define a route that would serve a static "index.html" from > the static folder for an incoming request for "/". > > I think, a simple case like this should be covered by the > documentation.
We have a "cookbook" in the works that describes how to do something like this. Here's a sneak peek: http://plope.com/static/pyramid_cookbook/static.html#root-relative-custom-static-view-url-dispatch-only - C -- You received this message because you are subscribed to the Google Groups "pylons-devel" group. To post to this group, send email to pylons-de...@googlegroups.com. To unsubscribe from this group, send email to pylons-devel+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/pylons-devel?hl=en.