From b55291fe8ef4a82acc66721ae8e5d9bd355fedec Mon Sep 17 00:00:00 2001 From: Thomas Steen Rasmussen Date: Sat, 14 May 2016 16:26:02 +0200 Subject: [PATCH] fix index regex --- shop/urls.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shop/urls.py b/shop/urls.py index c86f9a96..23581cac 100644 --- a/shop/urls.py +++ b/shop/urls.py @@ -12,7 +12,7 @@ urlpatterns = [ #EpayCallbackView, #name='epay_callback' #), - url(r'$', ShopIndexView.as_view(), name='index'), + url(r'^$', ShopIndexView.as_view(), name='index'), url(r'products/(?P[a-zA-Z0-9\-]+)/$', ProductDetailView.as_view(), name='product_detail'), url(r'orders/(?P[0-9]+)/$', OrderDetailView.as_view(), name='order_detail'), url(r'orders/(?P[0-9]+)/checkout/$', CheckoutView.as_view(), name='checkout'),