较前一小节更改url运行报错
url('blog/', include('blog.urls',namespace='blog')),
报错如下:
File "D:\Django_test\myblog\myblog\urls.py", line 7, in <module>
url('blog/', include('blog.urls',namespace='blog')), # 设置超链接
File "D:\anaconda3\lib\site-packages\django\urls\conf.py", line 39, in include
'Specifying a namespace in include() without providing an app_name '
django.core.exceptions.ImproperlyConfigured: 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.
其中报错主要信息如第二行;希望能够得到回复,谢谢?