still strange, only display successfully in Firefox.
On Sep 11, 1:46 am, justin davis <[email protected]> wrote:
> Strange. Try instead of "return web.notfound...", "raise
> web.notfound...".
>
> On Sep 10, 5:29 am, jeffkyjin <[email protected]> wrote:
>
>
>
> > When I use the cookbook 's 404 custom notfound
>
> > import web
>
> > urls = (...)
> > app = web.application(urls, globals())
>
> > def notfound():
> > return web.notfound("Sorry, the page you were looking for was not
> > found.")
>
> > # You can use template result like below, either is ok:
> > #return web.notfound(render.notfound())
> > #return web.notfound(str(render.notfound()))
>
> > app.notfound = notfound
>
> > ----------------------------
>
> > It seems that this can be display in firefox successfully, but in IE
> > or Chrome , it's still not a custom 404 page.
> > Anyone can give me a suggestion?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web.py" 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/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---