They are only applied when running on localhost and disabled by default otherwise. You can enabled them in db.py by replacing:
response.generic_patterns = ['*'] if request.is_local else [] with response.generic_patterns = ['*'] or response.generic_patterns = ['*.html'] They are disabled by default because they may leak information returned by the controller action that you may not want exposed. So be careful. > Hello, > > I'm new to programming and Web2Py. > > I am using pythonanywhere.com (web2py 2.14.6) and editing the existing > 'welcome' application > > When I make a new function in default.py, foo(), and call it without > explicitly making a view default/foo.html it does not seem to use the > generic.html view. > > Instead I get a page that says "invalid view (default/foo.html)" > > > The videos I'm watching as a tutorial are a few years old, but they all > indicate that the generic view should be applied, but that does not seem to > be happening. > > > > Also thanks to Massimo and all the Web2Py community, I've tried a few > other languages and frameworks, and Web2Py is by far the least frustrating! > > Thanks, > Emanuel > -- 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.