from django.urls import path, include, re_path from demo import views urlpatterns = [ path(r'', views.home), # 传参数到后面的views path(r'page', views.page_views), path(r'home', views.home), path(r'table_one', views.table_one), path(r'pie_one', views.pie_views), path(r'word_cloud', views.word_cloud), # re_path(r'^$', views.table_one), ]