使用Django框架时遇到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.问题的解决方法
源代码如下:
运行python manage.py runserver命令后就出现了上面的问题。
更改为下面的代码后运行成功,网页也正确运行。
from django.contrib import admin
from django.conf.urls import url, include
from django.urls import path