Django学习第四天学习笔记-Url的配置_url('^prefix/', include(urlpatterns))-CSDN博客

网站介绍:文章浏览阅读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))