If I put
routes_onerror = [
(r'*/*', r'/myapp/errors/index')
]
Then it allows me to capture
domain/abc
and do what I want according to what is after the slash.
However if I just put
domain it goes to the welcome page.
So if I change routes.py to
routers = dict(
BASE = dict(default_application='myApp'),
)
routes_onerror = [
(r'*/*', r'/images/errors/index')
]
Then
domain
does get routed to myapp,
but when I do
domain/abc
although it does get routed to myapp/errors/index,
request.vars just contains
<Storage {'ticket': 'None', 'code': '400', 'request_url': 'None',
'requested_uri
': 'None'}>
i.e. no information about what is after the slash.
is there any way that I can get
domain to route to myapp, and to
reroute
domain/whatever
myself according to what 'whatever' is?
Thanks
Peter