Hi there,
I've been having trouble trying to redefine views in satchmo urls. The
view I want to custom is
satchmo_category_index<http://www.satchmoproject.com/docs/dev/views.html#satchmo_category_index>
Url : /</CATEGORY_SLUG/
<http://www.satchmoproject.com/docs/dev/configuration.html#satchmo-settings-category-slug>>/
View : product.views.category_index()
<http://www.satchmoproject.com/docs/dev/views.html#product.views.category_index>
and my fix in urls is the following
*from django.conf.urls.defaults import *
from satchmo_store.urls import urlpatterns
from satchmo_utils.urlhelper import replace_urlpattern
from localsite import views
from satchmo_store.shop import get_satchmo_setting
urlpatterns += patterns('',
)
replacement = url(r'^'+get_satchmo_setting("CATEGORY_SLUG")+'/$',
views.category_index, {}, 'satchmo_category_index')
replace_urlpattern(urlpatterns, replacement)*
Now, the problem is that /category url is not recognised, and system is
using all /category prefix as /category/category, and obviously, my view
is not used.
Any clue about what's wrong?
Thank you in advance
--
You received this message because you are subscribed to the Google Groups "Satchmo
users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/satchmo-users?hl=en.