浏览代码

Fixed #31330 -- Updated flatpages URLconf example to work with APPEND_SLASH.

Regression in df41b5a05d4e00e80e73afe629072e37873e767a.
Hasan Ramezani 5 年之前
父节点
当前提交
a0916d7212
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      docs/ref/contrib/flatpages.txt

+ 1 - 1
docs/ref/contrib/flatpages.txt

@@ -79,7 +79,7 @@ to place the pattern at the end of the other urlpatterns::
 
     # Your other patterns here
     urlpatterns += [
-        path('<path:url>', views.flatpage),
+        path('<path:url>/', views.flatpage),
     ]
 
 .. warning::