there's a handy directive for it.
https://github.com/web2py/web2py/blob/master/applications/welcome/models/db.py#L33
On Wednesday, June 17, 2015 at 8:57:45 AM UTC+2, K.J. Pamio wrote:
>
> Hello,
> In my app on the local server enough to use the termination .json in function
> call that web2py automatically returning the results by generic.json. Now,
> with my app running on nginx/uwsgi get an error 404 and "invalid view" as a
> result of the call.
>
> If i use response.view = 'generic.json' in the controller methods, the system
> returns the data as expected, however I have many actions to modify. Is it
> possible to fix this without having to change all methods?
>
> Anticipate Thanks!
> Kayro
>
> --
> Att.,
> *Kayro Pamio*
> (44) 9988-8971
>
>- Inglês - detectado
>- Inglês
>- Português
>
>
>- Inglês
>- Português
>
>
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.