python的url分配

from django.conf.urls import url,include urlpatterns=[ url('xinwen/',include('xinwen.urls')) ] from django.urls import path from xinwen import viewsdjango

urlpatterns = [ path('login/', views.login), ] http://127.0.0.1:8080/xinwen/login/ 先到總的urls中找,以後到xinwen下的urls中找loginurl

相關文章
相關標籤/搜索