2016-06-18 14:39:32 +00:00
|
|
|
from django.contrib import admin
|
2018-12-07 22:52:28 +00:00
|
|
|
from django.urls import include, path
|
2016-06-18 14:39:32 +00:00
|
|
|
|
|
|
|
from . import views
|
|
|
|
|
|
|
|
backend_urls = (
|
|
|
|
[
|
2018-12-07 22:52:28 +00:00
|
|
|
path("something/", views.XViewClass.as_view(), name="something"),
|
2016-06-18 14:39:32 +00:00
|
|
|
],
|
|
|
|
"backend",
|
|
|
|
)
|
|
|
|
|
|
|
|
urlpatterns = [
|
2018-12-07 22:52:28 +00: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 14:39:32 +00:00
|
|
|
]
|