On Tuesday, September 20, 2016 at 12:20:48 PM UTC-4, Ty oc wrote:
> Well also now I got it (still not per app)... but the problem Im having is
> that I want to return a *json*, but Im getting the full HTML response
> with a body and all that.
> If I use
> error_handler = dict(application='backend',
> Nothing changes. So I have setup
Yes, it seems the documentation is way off regarding error_handler. As far
as I can tell, the only time that does anything is when you request a
non-existent application, in which case, it does a full HTTP redirect to
the application specified in error_handler, with the name of the originally
requested application in request.args(0). Given its functionality, it would
be better named something like missing_app_handler.
- 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
To unsubscribe from this group and stop receiving emails from it, send an email
For more options, visit https://groups.google.com/d/optout.