Форум сайта python.su
### urls проекта from django.conf.urls import url, include from django.contrib import admin import shop, cart urlpatterns = [ url(r'^admin/', admin.site.urls), url(r'^cart/', include('cart.urls', namespace='cart')), ]
#urls приложения from django.conf.urls import url from . import views urlpatterns = [ url(r'^$', views.CartDetail, name='CartDetail'), url(r'^remove/(?P<product_id>\d+)/$', views.CartRemove, name='CartRemove'), url(r'^add/(?P<product_id>\d+)/$', views.CartAdd, name='CartAdd'), ]
urlpatterns = [ url(r'^bbb/$', views.CartDetail, name='CartDetail'), . . . ]
Офлайн
Сделал функцию url первым элементом в списке и все заработало.
Офлайн