Skip to content

Commit b308df7

Browse files
committed
move catch all urls to bottom of urls.py
1 parent b3dc444 commit b308df7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

toolhub/urls.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
RedirectView.as_view(permanent=False, pattern_name="tools:detail"),
2424
name="tool_short",
2525
), # redirect /t/#/ to /tools/#/
26-
path("<path:url>", views.flatpage),
2726
]
2827

2928
handler400 = toolhub_views.BadRequest.as_view()
@@ -48,3 +47,6 @@
4847
import debug_toolbar
4948

5049
urlpatterns += [path("__debug__/", include(debug_toolbar.urls))]
50+
51+
# Catch all urls
52+
urlpatterns += [path("<path:url>", views.flatpage)]

0 commit comments

Comments
 (0)