问答详情
源自:2-4 Django HelloWorld

include

File "C:\Users\cjc\PycharmProjects\pythonProject3\demo\demo\urls.py", line 21, in <module>

    path("blog/",include("blog.urls"))

NameError: name 'include' is not defined

为啥找不到 include呢?求解

提问者:chujunchao999 2021-06-27 20:23

个回答

  • chujunchao999
    2021-06-27 21:05:39

    import include

    解决了