16 lines
729 B
Python
16 lines
729 B
Python
|
from django.conf.urls import url
|
||
|
from . import views
|
||
|
|
||
|
urlpatterns = [
|
||
|
url(r'^login$', views.user_login, name='login'),
|
||
|
url(r'^register$', views.user_register, name='register'),
|
||
|
url(r'^logout', views.user_logout, name='logout'),
|
||
|
url(r'^cart', views.cart, name='my_cart'),
|
||
|
url(r'^favorite', views.favorite, name='my_favorite'),
|
||
|
url(r'^order', views.my_order, name='my_order'),
|
||
|
url(r'^delete_favorite/(?P<id>[\w-]+)$', views.delete_favorite, name='delete_favorite'),
|
||
|
url(r'^delete_cart_data/(?P<id>[\w-]+$)', views.delete_cart_data, name='delete_cart_data'),
|
||
|
url(r'^add_to_order', views.add_to_order, name='add_to_order'),
|
||
|
url(r'^save_to_order', views.save_to_order, name='save_to_order'),
|
||
|
]
|