Django中多应用模块的路由分配及模板处理
django 1.11.7 LTE版本
python 3.6
当url空白的时候表示 除被指定规则的url,其他url都走app01.urls
from django.conf.urls import url,include
from django.contrib import admin
urlpatterns = [
url(r'^admin/', admin.site.urls),
url(r'^app01/', include('app01.urls', namespace='app')), # app:register
url(r'^', include('web.urls')), # 指除app01外的,都走web.urls
]