我在你的代码中发现了一些错误,如下所示。
错误1
,内部缺少逗号
'' include()
,缺少括号
),
以下内容:
path('' include('hello_world.urls'),
应该是
path('', include('hello_world.urls')),
错误2
,数组项末尾缺少逗号
"context_processors"
以下内容:
"django.template.context_processors.request"
应该是
"django.template.context_processors.request",
错误3
,不必要的运算符<<在文件admin.site.url中:
>> https://localhost.com
应该是
https://localhost.com
错误3
,不必要的运算符<<在文件hello\u world.url中:
>> <h1>hello world</h1>
应该是
<h1>hello world</h1>