问题描述
错误提示:
‘Specifying a namespace in include() without providing an app_name is not supported. Set the app_name attribute in the included module, or pass a 2-tuple containing the list of patterns and app_name instead.’
问题分析
是因为include()里面少传了一个参数
解决方案
url(r'^system/basic/', include('users.urls', namespace='system-basic')),
修改为:
url(r'^system/basic/', include(('users.urls', 'system-basic'), namespace='system-basic')),
本人的经验分享,希望可以帮助到你们,如何不对的地方,可以评论留言,帮我指正一下,如果帮助了你,请给我点个赞吧