在app general of url中添加库路径时,向我发送下一条消息:“E0611:No name‘path’in module”django.url'和“E0611:模块中没有名称're\u path'”django.url'". 你知道吗
它是URL中的代码:
from django.contrib import admin
from django.urls import include,re_path
from django.urls import include,path
from homepage.views import homepage
urlpatterns = [
path(r'^admin/', admin.site.urls),
path(r'^',include('homepage.urls')),
]
urlpatterns +=[
re_path(r'home/',include('homepage.urls'))
]
我使用的版本是v2.1
谢谢你帮我。你知道吗
在官方文件中他们解释酷。你呢需要进一步研究文档吗
文件:
相关问题 更多 >
编程相关推荐