I used this the below in routes.in
(r'^(?P<year>\d{4})/(?P<month>\d{2})/(?P<slug>\w+)/$',
'/init/default/index/\g<year>/\g<month/\g<slug>'),
but when I go to a url
localhost:/2011/11/a-slug
it returns invalid request error
then I tried
routers = dict(
BASE = dict(default_application = 'init',
default_controller = 'default',
default_function = 'index',
),
)
which gives me the error:
invalid function (default/2011)
fair enough. I could traverse /index/2011 ....
But can I drop index too from the url?
Thx,
Joseph