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
在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