Quellcode durchsuchen

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

Regression in df41b5a05d4e00e80e73afe629072e37873e767a.
Hasan Ramezani vor 5 Jahren
Ursprung
Commit
a0916d7212
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  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::