Skip to content

Commit

Permalink
move catch all urls to bottom of urls.py
Browse files Browse the repository at this point in the history
  • Loading branch information
destos committed Mar 12, 2019
1 parent b3dc444 commit b308df7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion toolhub/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
RedirectView.as_view(permanent=False, pattern_name="tools:detail"),
name="tool_short",
), # redirect /t/#/ to /tools/#/
path("<path:url>", views.flatpage),
]

handler400 = toolhub_views.BadRequest.as_view()
Expand All @@ -48,3 +47,6 @@
import debug_toolbar

urlpatterns += [path("__debug__/", include(debug_toolbar.urls))]

# Catch all urls
urlpatterns += [path("<path:url>", views.flatpage)]

0 comments on commit b308df7

Please sign in to comment.