usually it can be done with:

def show_post():
    post_id = request.args(0) or redirect(URL('default', '<anyplace>'))



On Sat, Mar 3, 2012 at 6:04 PM, HittingSmoke <[email protected]> wrote:

> I'm learning Python and web2py together (I know, not recommended but
> I'm having fun) by writing a small and simple blog.
>
> I've run into a problem with 404s. When my app tries to pull up an
> invalid blog ID I get a 'list index out of range' error ticket.
> Ideally these should be 404 pages. Same goes for invalid controller
> errors.
>
> I tried searching both the book and Google for info about setting up
> 404s for these types of situations but I'm not coming up with anything
> relevant.
>
> Is there a standard practice for 404 pages in web2py when dealing with
> non-existent data errors?




-- 

Bruno Rocha
[http://rochacbruno.com.br]

Reply via email to