Is contribuyentes.html inside the /views/default folder, or just inside
/views (it belongs in the former)?
Anthony
On Thursday, September 6, 2012 3:48:26 PM UTC-4, ocascante 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.
>
>
>
--