my routes on_error used on GAE (collects 400 and 500 errors unless GAE 
itself throws the error before web2py gets the request):

routes_onerror = [
     ('<appname>/*', '/<appname>/home/missing.html'),
]


On Friday, May 11, 2012 8:18:11 PM UTC-7, Sushant Taneja wrote:
>
> Yes I did configure the routes_onerror in routes.py
> But whenever I entered the URL of the page which does not exist, it would 
> still return me *invalid request.*
>
>
> On Saturday, May 12, 2012 8:40:35 AM UTC+5:30, Anthony wrote:
>>
>> There's no such thing as routers.py -- if using the parameter-based 
>> rewrite system, you still use routes.py. Anyway, did you try adding 
>> routes_onerror to routes.py: 
>> http://web2py.com/books/default/chapter/29/4#Routes-on-error? Note, you 
>> have to restart the app for routes changes to take effect.
>>
>> Anthony
>>
>> On Friday, May 11, 2012 11:06:18 PM UTC-4, Sushant Taneja wrote:
>>>
>>> Hi All,
>>>
>>> I have two static custom errors pages for all 4XX and 5XX error codes.
>>> I want to integrate them with my web2py application which needs to be 
>>> deployed on app engine.
>>>
>>> I tried playing around with routes.py as well as routers.py but still 
>>> couldn't fix the same.
>>>
>>> Can anyone please tell me the correct way to achieve the above ?
>>>
>>> Thanks and Regards,
>>> Sushant Taneja
>>>
>>

Reply via email to