首次构建失败了,这是报错信息??

来源:2-6 项目练习-Django的View、路由参数实践

小比奇

2020-06-19

django.core.exceptions.ImproperlyConfigured: The included URLconf ‘<module ‘app.urls’ from ‘C:\Users\WG\messeage_test\app\urls.py’>’ does not appear to have any patterns in it. If you see valid patterns in the file then
the issue is probably caused by a circular import.

写回答

2回答

deweizhang

2020-06-19

你看下你定义的urls里的变量名是不是有错误 和视频里对照一下

0
0

小比奇

提问者

2020-06-19

//img1.sycdn.imooc.com/szimg/5eec9ef909808f2308020357.jpg

//img.mukewang.com/szimg/5eec9ef909ad697406060227.jpg

核对两次,没看出有什么不同

0
1
deweizhang
你把源码下载下来核对一下 因为我手头没有电脑 没法帮你很好的排查 所以你看看源码,在课程网页有git的下载仓库,另外看下Django版本是否是2的版本~
2020-06-19
共1条回复

Django入门到进阶-适合Python小白的系统课程

入门Django的同时,让你形成更贴近实际工作的Python Web开发知识体系

1114 学习 · 464 问题

查看课程