django:报错NameError: name ‘include‘ is not defined

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

django:报错NameError: name ‘include‘ is not defined_第1张图片
上网一查只用在django自动生成的包urls.py中加入

from django.conf.urls import include

django:报错NameError: name ‘include‘ is not defined_第2张图片

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

你可能感兴趣的:(django,python3.x)