File: urls_namespaced.py

package info (click to toggle)
python-django-braces 1.17.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 484 kB
  • sloc: python: 2,680; makefile: 138; sh: 6
file content (12 lines) | stat: -rw-r--r-- 229 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
from django.urls import re_path

from . import views


urlpatterns = [
    re_path(
        r"^article/(?P<pk>\d+)-(?P<slug>[\w-]+)/$",
        views.CanonicalSlugDetailView.as_view(),
        name="namespaced_article",
    ),
]