django框架urls路徑配置問題

urlpatterns = [ url(r'^admin/', admin.site.urls), url(r'^user/', include('fruitapp.urls')), url(r'^df_goods/', include('df_goods.urls')), ] 1. 在基準urls中寫路徑時不寫$(結束標識),並且記得都都要寫斜槓 /,表示從/後開始匹配路
相關文章
相關標籤/搜索