首页 > 技术文章 > django:报错NameError: name ‘include‘ is not defined

hezhe666 2020-12-12 13:25 原文

第一天学习django,报错NameError: name 'include' is not defined,来记录一下错误

在这里插入图片描述
上网一查只用在django自动生成的包urls.py中加入

from django.conf.urls import include

在这里插入图片描述
成功运行
成功运行

完美解决,在此感谢喜欢海呀提供的博文

推荐阅读