greg wrote:
i have to modifie my url.py file previously
urlpatterns = patterns('',
(r'^recettes/$', 'cefinban.recettes.views.index'),
(r'^recettes/(?P<recettes_id>\d+)/$',
'cefinban.recettes.views.detail'),
.....
)
to (r'^cefinban/recettes/(?P<recettes_id>\d+)/$',
'cefinban.recettes.views.detail'), ...
I guess this is not the food way, i would like not to need to put
cefinban before recette only because of the location "/cefinban/".
You could remove the "^" in the regex to say it matches any strings that
prefixed the intended url pattern:
r'^cefinban/recettes/(?P<recettes_id>\d+)/$', 'cefinban.recettes.views.detail')
to
r'recettes/(?P<recettes_id>\d+)/$', 'cefinban.recettes.views.detail')
--
dsw