

from django.contrib import admin
from django.urls import path
from store.views  import home,cart,LoginView,signout,signup,add_to_cart,checkout
from store.views  import validatePayment,ProductDetailView,OrderListView
from django.contrib.auth.decorators import login_required
urlpatterns = [

    path('', home,name='homepage'),
    path('cart/',cart),
    path('orders/',login_required(OrderListView.as_view(),login_url='/login/'),name='orders'),
    path('login/',LoginView.as_view(), name='login'),
    path('signup/',signup,),
    path('logout/',signout,),
    path('product/<str:slug>',ProductDetailView.as_view()),
    path('addtocart/<str:slug>/<str:size>',add_to_cart),
    path('checkout/',checkout),
    path('validate_payment',validatePayment)
   
]
4fec6c7b1b89ea26e8565a7355998989c792c220
<mask token>

<mask token>
urlpatterns = [path('', home, name='homepage'), path('cart/', cart), path(
    'orders/', login_required(OrderListView.as_view(), login_url='/login/'),
    name='orders'), path('login/', LoginView.as_view(), name='login'), path
    ('signup/', signup), path('logout/', signout), path(
    'product/<str:slug>', ProductDetailView.as_view()), path(
    'addtocart/<str:slug>/<str:size>', add_to_cart), path('checkout/',
    checkout), path('validate_payment', validatePayment)]

from django.contrib import admin
from django.urls import path
from store.views import home, cart, LoginView, signout, signup, add_to_cart, checkout
from store.views import validatePayment, ProductDetailView, OrderListView
from django.contrib.auth.decorators import login_required
urlpatterns = [path('', home, name='homepage'), path('cart/', cart), path(
    'orders/', login_required(OrderListView.as_view(), login_url='/login/'),
    name='orders'), path('login/', LoginView.as_view(), name='login'), path
    ('signup/', signup), path('logout/', signout), path(
    'product/<str:slug>', ProductDetailView.as_view()), path(
    'addtocart/<str:slug>/<str:size>', add_to_cart), path('checkout/',
    checkout), path('validate_payment', validatePayment)]



from django.contrib import admin
from django.urls import path
from store.views  import home,cart,LoginView,signout,signup,add_to_cart,checkout
from store.views  import validatePayment,ProductDetailView,OrderListView
from django.contrib.auth.decorators import login_required
urlpatterns = [

    path('', home,name='homepage'),
    path('cart/',cart),
    path('orders/',login_required(OrderListView.as_view(),login_url='/login/'),name='orders'),
    path('login/',LoginView.as_view(), name='login'),
    path('signup/',signup,),
    path('logout/',signout,),
    path('product/<str:slug>',ProductDetailView.as_view()),
    path('addtocart/<str:slug>/<str:size>',add_to_cart),
    path('checkout/',checkout),
    path('validate_payment',validatePayment)
   
]