AutoCmdb
1 # urls.py 2 """AutoCmdb URL Configuration 3 4 The `urlpatterns` list routes URLs to views. For more information please see: 5 https://docs.djangoproject.com/en/2.0/topics/http/urls/ 6 Examples: 7 Function views 8 1. Add an import: from my_app import views 9 2. Add a URL to urlpatterns: path('', views.home, name='home') 10 Class-based views 11 1. Add an import: from other_app.views import Home 12 2. Add a URL to urlpatterns: path('', Home.as_view(), name='home') 13 Including another URLconf 14 1. Import the include() function: from django.urls import include, path 15 2. Add a URL to urlpatterns: path('blog/', include('blog.urls')) 16 """ 17 from django.contrib import admin 18 from django.urls import path 19 20 # ————————02CMDB将服务器基本信息提交到API接口———————— 21 from django.conf.urls import url 22 from django.conf.urls import include 23 # ————————02CMDB将服务器基本信息提交到API接口———————— 24 25 urlpatterns = [ 26 path('admin/', admin.site.urls), 27 28 # ————————02CMDB将服务器基本信息提交到API接口———————— 29 url(r'^api/', include('api.urls')), 30 # ————————02CMDB将服务器基本信息提交到API接口———————— 31 32 ]