project->urls.py
urlpatterns = [
url(r'^admin/', admin.site.urls),
url(r'^blog/', include('blog.urls', namespace='blog'))
导入blog这个app下的url映射
]
project->urls.py
urlpatterns = [
url(r'^admin/', admin.site.urls),
url(r'^blog/', include('blog.urls', namespace='blog'))
导入blog这个app下的url映射
]
本文标题:include
本文链接:https://www.haomeiwen.com/subject/iommfxtx.html
网友评论