On Sunday, July 16, 2017 at 7:20:33 AM UTC-4, Leonel Câmara wrote: > You are using the generic json view. By default generic views are only > allowed on localhost. You need to allow it for your function by adding > something like this to your models. > > > response.generic_patterns = ['default/echo_upload.json']
generic_patterns should match the names of the generic templates, not the names of functions that lack a dedicated template. Just matching to 'json' should do, but this line should go in the controller function so it doesn't affect other requests. Anthony -- 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.