Hi Iain, <http://docs.pylonsproject.org/projects/pyramid_cookbook/dev/static.html#root-relative-custom-static-view-url-dispatch-only>
Not useful for apps that use traversal. - C On Fri, 2011-02-11 at 18:16 -0800, Iain Duncan wrote: > Hi folks, I want to have my Pyramid app look first for static html > files when given a path like > > > > /foo.html > > > I can make this happen by using the following static declaration, but > that seems to hide other views as well: > > > <static > name="" > path="nf.static:html" > /> > > > When I use the above, I seem to get any request at the root directory > being interpreted as a request for a static document only. I get a > resource not found error when asking for a view named 'test' for > example, that is registered and working at the path '/test'. > > > Is there an easy way to accomplish this with static views that I'm > missing? > > > thanks > Iain > -- > You received this message because you are subscribed to the Google > Groups "pylons-discuss" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to pylons-discuss > [email protected]. > For more options, visit this group at > http://groups.google.com/group/pylons-discuss?hl=en. -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
