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 is not found. However, when accessing the web2py server from another machine, web2py will not automatically fallback to generic views because of security concerns. You have to authorize web2py to hand out generic views to non-localhost clients by modifying the line mentioned previously.
Hope that helps.

