发布于 4年前

Django报错:ImportError: cannot import name 'include'

在Django的urls里导入include可以解决错误:ImportError: cannot import name 'include'。

Django==1.11.0导入include方式:

from django.conf.urls import include

Django==2.x导入include方式:

from django.urls import include
©2020 edoou.com   京ICP备16001874号-3