that should be under */views/default/contribuyentes.html*

On Thu, Sep 6, 2012 at 4:48 PM, ocascante <oscarcascantefons...@gmail.com>wrote:

> Hi, i am new in web2py.
>
> I have web2py 2.07 installed in my linux mint 13 computer. I used the
> script available in google to install it.
>
> Now, i have a problem that i don't understand.
>
> First I have in the default.py this:
>
> def contribuyentes():
>     grid = SQLFORM.smartgrid(db.contribuyentes)
>     return dict(grid=grid)
>
> and second i created the contribuyentes.html view with:
>
> {{extend 'layout.html'}}
> {{=grid}}
>
> If i write "response.generic_patterns = ['*']" in the contribuyentes
> function, i access the generic view but not the contribuyentes view.
> Without this sentence, i have this error: "invalid view
> (default/contribuyentes.html)"
> I don't want to use the generic view.
>
> Thanks for your help.
>
>
>  --
>
>
>
>

-- 



Reply via email to