urlpatterts中能夠有相同的url,好比
url(r'^api/v1.0/', include('user.urls', namespace='api')),
api
url(r'^api/v1.0/', include('house.urls', namespace='house')),
相同的url能夠有不一樣的namespaceurl
不能有相同的namespacespa
url(r'^', include(goods_patterns, namespace='goods')), url(r'^test/$', include(test_pattens, namespace='goods')), namespace都是goods,這樣是會報錯的