网站介绍:文章浏览阅读242次。配置如下website下的 urls.pyurlpatterns = [ url(r'^admin/', admin.site.urls), url(r'^blog/', include('blog.urls')), #将url请求转交给下一级urls路由处理]blog下的urls.pyurlpatterns = [ url(r'^index/$',views.in_url('^prefix/', include(urlpatterns))
- 链接地址:https://blog.csdn.net/jfztaq/article/details/53309084
- 链接标题:Django学习第四天学习笔记-Url的配置_url('^prefix/', include(urlpatterns))-CSDN博客
- 所属网站:blog.csdn.net
- 被收藏次数:6277
- 网站标签:url('^prefix/' include(urlpatterns))