from django.conf.urls import url from django.urls import re_path from . import views urlpatterns = [ # url(r'^$', views.CartDetail, name='CartDetail'), # url(r'^remove/(?P[-\w]+)/$', views.CartRemove, name='CartRemove'), # url(r'^add/$', views.CartAdd, name='CartAdd'), re_path(r'^buyings/history/', views.BuyingsHistory.as_view(), name='buyings_history') ]