I put it in the folder where my application is in so
web2py/applications/myapp/routes.py
that is where I put it in
muratkas...@gmail.com schrieb am Dienstag, 22. November 2022 um 15:55:25
UTC+7:
> Hi Silvian,
> 1. Can you try to copy the test.html into "static" folder like :
> routes_onerror
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 , 22 Kas 2022 Sal,
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
muratkas...@gmail.com schrieb am Dienstag, 22. November 2022 um 14:17:13
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 , 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
4 matches
Mail list logo