routes_out is used when mapping a URL('controller','function') into an
actual url. It is called reversed routing in other frameworks.
On Sunday, 27 August 2017 17:49:47 UTC-5, Alfonso Serra wrote:
>
> Simpler and better approach:
>
> routes_in = (
> # do not reroute admin unless you want to
Simpler and better approach:
routes_in = (
# do not reroute admin unless you want to disable it
(BASE + '/admin', '/admin/default/index')
, (BASE + '/admin/$anything', '/admin/$anything')
# do not reroute appadmin unless you want to disable it
, (BASE + '/$app/appadmin',
Think i got it:
routes.py:
routes_onerror = [
# (r'init/400', r'/init/default/login')
# ,(r'init/*', r'/init/static/fail.html')
# ,(r'*/404', r'/init/static/cantfind.html')
('*/*', '/myapp/default/handle_error')
]
In app/default.py
def handle_error():
code =
3 matches
Mail list logo