报错信息为:
django.core.exceptions.ImproperlyConfigured: Passing a 3-tuple to include() is not supported. Pass a 2-tuple containing the list of patterns and app_name, and provide the namespace argument to include() instead.
解决方法:
改为:url(r’xadmin/’, xadmin.site.urls),
不要使用url(r’xadmin/’, include(xadmin.site.urls))方式,由django2知,对于admin来说,admin.site.urls不需要使用include来进行路由的转发,这是一个例外,
小编猜测xadmin应该也是同理。
django官网