<reponame>thaismr/levoemcasa-heroku<gh_stars>0
from django.urls import path
from . import views

# Create a namespace for these urls
# categories:<path_name>
app_name = 'categories'

urlpatterns = [
    path('', views.CategoryList.as_view(), name='list'),
    path('categorias', views.CategoryList.as_view(), name='list'),
    path('categorias/<str:slug>', views.CategoryChildren.as_view(), name='children'),
    path('categorias/<str:parent>/<str:slug>', views.CategoryDetails.as_view(), name='details'),
]

from django.urls import path
from . import views

# Create a namespace for these urls
# categories:<path_name>
app_name = 'categories'

urlpatterns = [
    path('', views.CategoryList.as_view(), name='list'),
    path('categorias', views.CategoryList.as_view(), name='list'),
    path('categorias/<str:slug>', views.CategoryChildren.as_view(), name='children'),
    path('categorias/<str:parent>/<str:slug>', views.CategoryDetails.as_view(), name='details'),
]
# Create a namespace for these urls # categories:<path_name>