79437173

Date: 2025-02-13 17:10:49
Score: 1.5
Natty:
Report link

I finally find a way just in case it can help others.

#views.py

category_patterns = (
    [
        path("/<slug:slug>/", views.category_detail, name='category-detail'),
    ],
    'category',
)

urlpatterns = [
    path(_('[CATEGORY/]'), include(category_patterns, namespace="category")),
]
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Sacha Rk.