Hi,

I have a bunch of categories setup in my satchmo site and I'd like the
default SHOP_URL ("/") to directly invoke the view for a specific
category ("/category/groupA").

I've tried making the below edit in shop/urls.py ( just to test - i
don't intend to fork satchmo), but it doesn't work, error below. Any
ideas?

#(r'^$','home.home', {}, 'satchmo_shop_home'), <- Removed line
(r'^$','korma-site.localsite.views.korma_category_view', {"slug" :
"groupA"}, 'satchmo_category'),

Result: 404

Error Message:

Using the URLconf defined in korma-site.urls, Django tried these URL
patterns, in this order:

    ^admin/doc/
    ^accounts/
    ^settings/
    ^cache/
    ^admin/product/configurableproduct/(?P<id>\d+)/getoptions/
[name='satchmo_admin_configurableproduct']
    ^admin/inventory/edit/$ [name='satchmo_admin_edit_inventory']
    ^inventory/export/$ [name='satchmo_admin_product_export']
    ^inventory/import/$ [name='satchmo_admin_product_import']
    ^admin/(?P<product_id>\d+)/variations/$
[name='satchmo_admin_variation_manager']
    ^admin/variations/$ [name='satchmo_admin_variation_list']
    ^admin/print/(?P<doc>[-\w]+)/(?P<id>\d+)
[name='satchmo_print_shipping']
    ^add/$ [name='satchmo_smart_add']
    ^cart/$ [name='satchmo_cart']
    ^cart/accept/$ [name='satchmo_cart_accept_terms']
    ^cart/add/$ [name='satchmo_cart_add']
    ^cart/add/ajax/$ [name='satchmo_cart_add_ajax']
    ^cart/qty/$ [name='satchmo_cart_set_qty']
    ^cart/qty/ajax/$ [name='satchmo_cart_set_qty_ajax']
    ^cart/remove/$ [name='satchmo_cart_remove']
    ^cart/remove/ajax/$ [name='satchmo_cart_remove_ajax']
    ^checkout/
    ^contact/$ [name='satchmo_contact']
    ^history/$ [name='satchmo_order_history']
    ^quickorder/$ [name='satchmo_quick_order']
    ^tracking/(?P<order_id>\d+)/$ [name='satchmo_order_tracking']
    ^search/$ [name='satchmo_search']
    ^product/
    ^category/
    ^contact/thankyou/$ [name='satchmo_contact_thanks']
    ^sitemap\.xml$ [name='satchmo_sitemap_xml']
    ^admin/
    ^static/(?P<path>.*)$
    ^site_media/(.*)$
    ^(?P<parent_slugs>[-\w]+/)*(?P<slug>[-\w]+)/$
[name='satchmo_category']

The current URL, , didn't match any of these.

-- 
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.

Reply via email to