1
0
mirror of https://github.com/django/django.git synced 2024-12-22 17:16:24 +00:00
django/tests/admin_docs/namespace_urls.py
2022-02-07 20:37:05 +01:00

18 lines
406 B
Python

from django.contrib import admin
from django.urls import include, path
from . import views
backend_urls = (
[
path("something/", views.XViewClass.as_view(), name="something"),
],
"backend",
)
urlpatterns = [
path("admin/doc/", include("django.contrib.admindocs.urls")),
path("admin/", admin.site.urls),
path("api/backend/", include(backend_urls, namespace="backend")),
]