Re: [web2py] @request.restful() only works on localhost

2013-06-17 Thread Anthony
On Monday, June 17, 2013 4:47:30 PM UTC-4, Paolo valleri wrote: > that could be a problem of a generic view not correctly loaded due to the > following line in db.py > > response.generic_patterns = ['*'] if request.is_local else [] > > change it to > > response.generic_patterns = ['*'] > > > Thou

Re: [web2py] @request.restful() only works on localhost

2013-06-17 Thread Eduardo Cruz
Thanks that line was the problem! El lunes, 17 de junio de 2013 16:47:30 UTC-4, Paolo valleri escribió: > > that could be a problem of a generic view not correctly loaded due to the > following line in db.py > > response.generic_patterns = ['*'] if request.is_local else [] > > change it to > > re

Re: [web2py] @request.restful() only works on localhost

2013-06-17 Thread Paolo valleri
that could be a problem of a generic view not correctly loaded due to the following line in db.py response.generic_patterns = ['*'] if request.is_local else [] change it to response.generic_patterns = ['*'] Paolo On Monday, June 17, 2013 9:50:58 PM UTC+2, Michele Comitini wrote: > > send exa

Re: [web2py] @request.restful() only works on localhost

2013-06-17 Thread Michele Comitini
send example code to reproduce the error please! model, controller and iff you have modified routes.py send that too. mic 2013/6/17 Eduardo Cruz > I have made an api using @request.restful() decorator but when I try to > use the api from another machine it gives me an 404, Im running web2py

[web2py] @request.restful() only works on localhost

2013-06-17 Thread Eduardo Cruz
I have made an api using @request.restful() decorator but when I try to use the api from another machine it gives me an 404, Im running web2py with the built-in server at 0.0.0.0 -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubsc