crud delete is not what was supposed to be. It does not return a
delete form as you expect, it simply deletes the record and redirects
to next. You get an error probably because "media" action does not
exist.

On Aug 10, 2:55 am, Web2Py Freak <[email protected]> wrote:
> Hello guys ,
>
> am trying to use crud.delete and it keeps giving this  (404 NOT
> FOUND)
>
> this is the controller :
>
> def removepost():
>  form = crud.delete(db.blogpost,request.args(0)
>                        ,message='your Post Was Deleted',
>             next=URL('media'))
>  return dict(form=form)
>
> this is the view :
>
> {{extend 'layout.html'}}
> <h1>Delete This blogpost</h1>
> {{=form}}
>
> So anyone can tell me whats wrong ??

Reply via email to