[web2py] Re: Call web2py from a microcontroller

2011-08-16 Thread Ross Peoples
The screenshot makes it pretty clear that it can't find the view: default/count.json. If you are expecting a generic view to take over instead, you will need to go into your db.py model and change this line: response.generic_patterns = ['*'] if request.is_local else [] to:

[web2py] Re: Call web2py from a microcontroller

2011-08-16 Thread Ross Peoples
I should probably clarify why this is happening. The line I mentioned checks to see if the client is running on the localhost (i.e. the web browser running on the same machine as the web2py server). If it is, then web2py is authorized to use a generic view to respond to the request if a view