标签:djang absolute 版本 include div from 问题 abs test
旧版本:
from django.conf.urls import include, url from django.contrib import admin urlpatterns = [ url(r‘^admin/‘, include(admin.site.urls)), url(r‘^‘, include(‘booktest.urls‘)), ]
新版本:
from django.contrib import admin
from django.urls import path, include
urlpatterns = [
path(‘admin/‘, admin.site.urls),
path(‘‘, include(‘booktest.urls‘)),
]
标签:djang absolute 版本 include div from 问题 abs test
原文地址:https://www.cnblogs.com/King-boy/p/12250048.html