Hi Silvian,
1. Can you try to copy the test.html into "static" folder like :
routes_onerror = [('myapp/404', '/myapp/static/test.html')]
2. Also could you check the location of the routes.py if it is on the same
folder with web2py.py?
Best,
Murat.


Silvian “Top 10 Answers” Cedru <[email protected]>, 22 Kas 2022 Sal,
11:03 tarihinde şunu yazdı:

> Yeah tried it I put this piece of code in the route.py that is in my app
> root folder
>
> routes_onerror = [('myapp/404', '/myapp/views/test.html')]
>
>
> still nothing happens I get invalid request instead of going to my 404
> page
>
> [email protected] schrieb am Dienstag, 22. November 2022 um 14:17:13
> UTC+7:
>
>> Hi,
>> May be this page gives you a clue:
>> http://www.web2py.com/books/default/chapter/34/04/the-core#Routes-on-error
>> Best,
>> Murat.
>>
>>
>>
>> Silvian “Top 10 Answers” Cedru <[email protected]>, 22 Kas 2022 Sal,
>> 10:08 tarihinde şunu yazdı:
>>
>>> Is there a way if a site is not existing to display a custom error page
>>> I was looking in the docs but I could not find anything .
>>>
>>> This is how it looks now :
>>>
>>>
>>> --
>>> 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 [email protected].
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/web2py/a65fd795-c8f4-40b0-b911-a1096761dd79n%40googlegroups.com
>>> <https://groups.google.com/d/msgid/web2py/a65fd795-c8f4-40b0-b911-a1096761dd79n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> --
> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/web2py/47e1dc44-53f9-48dc-a255-dd9adcc32e99n%40googlegroups.com
> <https://groups.google.com/d/msgid/web2py/47e1dc44-53f9-48dc-a255-dd9adcc32e99n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/CAC5t_JwL5VLaKtrRf-sza8S5Da5oWaVgsqzt_m64Aqw6tosCOw%40mail.gmail.com.

Reply via email to