django:報錯NameError: name ‘include‘ is not defined

第一天學習django,報錯NameError: name 'include' is not defined,來記錄一下錯誤django


上網一查只用在django自動生成的包urls.py中加入學習

from django.conf.urls import include


成功運行
成功運行url

完美解決,在此感謝喜歡海呀提供的博文spa

相關文章
相關標籤/搜索