urls.py from django.conf.urls import url from django.contrib import admin from cmdb import views urlpatterns = [ url(r'^admin/', admin.site.urls), url(r'^index/', views.index), ] 1.正则表达式一类对应统一页面 url(r'^index-(\d+)/', views.index),如果正则表达式有两个值((\d+)-(…