from __future__ import unicode_literals

from django.conf.urls import patterns, url

urlpatterns = patterns("cartridge.shop.views",
    url("^product/(?P<slug>.*)/$", "product", name="shop_product"),
    url("^wishlist/$", "wishlist", name="shop_wishlist"),
    url("^cart/$", "cart", name="shop_cart"),
    url("^checkout/$", "checkout_steps", name="shop_checkout"),
    url("^checkout/complete/$", "complete", name="shop_complete"),
    url("^invoice/(?P<order_id>\d+)/$", "invoice", name="shop_invoice"),
    url("^invoice/(?P<order_id>\d+)/resend/$", "invoice_resend_email",
            name="shop_invoice_resend"),
)

@@ -78,16 +78,100 @@
 s, url%0A%0A
+from mezzanine.conf import settings%0A%0A_slash = %22/%22 if settings.APPEND_SLASH else %22%22%0A%0A
 urlpatte
@@ -239,19 +239,29 @@
 slug%3E.*)
-/$%22
+%25s$%22 %25 _slash
 , %22produ
@@ -305,19 +305,29 @@
 wishlist
-/$%22
+%25s$%22 %25 _slash
 , %22wishl
@@ -369,19 +369,29 @@
 l(%22%5Ecart
-/$%22
+%25s$%22 %25 _slash
 , %22cart%22
@@ -429,19 +429,29 @@
 checkout
-/$%22
+%25s$%22 %25 _slash
 , %22check
@@ -512,19 +512,29 @@
 complete
-/$%22
+%25s$%22 %25 _slash
 , %22compl
@@ -601,128 +601,33 @@
 %5Cd+)
-/$%22, %22invoice%22, name=%22shop_invoice%22),%0A    url(%22%5Einvoice/(?P%3Corder_id%3E%5Cd+)/resend/$%22, %22invoice_resend_email%22,%0A           
+%25s$%22 %25 _slash, %22invoice%22,
  nam
@@ -645,15 +645,8 @@
 oice
-_resend
 %22),%0A

Handle the APPEND_SLASH setting