2016-06-18 16:39:32 +02:00
|
|
|
from django.contrib import admin
|
2018-12-07 23:52:28 +01:00
|
|
|
from django.urls import include, path
|
2016-06-18 16:39:32 +02:00
|
|
|
|
|
|
|
from . import views
|
|
|
|
|
|
|
|
backend_urls = (
|
|
|
|
[
|
2018-12-07 23:52:28 +01:00
|
|
|
path("something/", views.XViewClass.as_view(), name="something"),
|
2016-06-18 16:39:32 +02:00
|
|
|
],
|
|
|
|
"backend",
|
|
|
|
)
|
|
|
|
|
|
|
|
urlpatterns = [
|
2018-12-07 23:52:28 +01:00
|
|
|
path("admin/doc/", include("django.contrib.admindocs.urls")),
|
|
|
|
path("admin/", admin.site.urls),
|
|
|
|
path("api/backend/", include(backend_urls, namespace="backend")),
|
2016-06-18 16:39:32 +02:00
|
|
|
]
|