from django.urls import path

import mainapp.views as mainapp


app_name = "mainapp"

urlpatterns = [
    path("", mainapp.product, name="index"),
    path("<int:pk>/", mainapp.product, name="category"),
    path("<int:pk>/page/<int:page>/", mainapp.product, name="page"),
    path("product/<int:pk>/", mainapp.product_page, name="product"),
]

from django.urls import path

import mainapp.views as mainapp


app_name = "mainapp"

urlpatterns = [
    path("", mainapp.product, name="index"),
    path("<int:pk>/", mainapp.product, name="category"),
    path("<int:pk>/page/<int:page>/", mainapp.product, name="page"),
    path("product/<int:pk>/", mainapp.product_page, name="product"),
]
