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