今天使用Django测试第一个小例子的时候,遇到了NameError: name 'include' is not defined错误

来源:互联网 发布:mac上eclipse汉化 编辑:程序博客网 时间:2024/05/16 17:31

找了一下原因,是忘记在urls.py文件中引入include了,加上一句

from django.conf.urls import include

就可以了。

阅读全文
0 0
原创粉丝点击