diff --git a/board/urls.py b/board/urls.py index ecf3aa7..704fcd7 100644 --- a/board/urls.py +++ b/board/urls.py @@ -9,13 +9,6 @@ app_name = "board" urlpatterns = [ # News views path("news/", NewsListView.as_view(), name="board_news"), - # Board views - path("/", BoardView.as_view(), name="board_detail"), - path("/page//", BoardView.as_view(), name="board_detail"), - path("/post//", PostView.as_view(), name="post_detail"), - path("/post/create/", PostCreateView.as_view(), name="post_create"), - path("/reply//", ReplyCreateView.as_view(), name="reply_create"), - path("post/success/", PostSuccessView.as_view(), name="post_success"), # Reports path("report///", ReportView.as_view(), name="report_form"), path( @@ -49,6 +42,14 @@ urlpatterns = [ ActionSuccessView.as_view(window_timeout=settings.ACTION_SUCCESS_CLOSE_TIMEOUT), name="post_delete_success", ), + # Board views + path("post/success/", PostSuccessView.as_view(), name="post_success"), + path("/page//", BoardView.as_view(), name="board_detail"), + path("/post//", PostView.as_view(), name="post_detail"), + path("/post/create/", PostCreateView.as_view(), name="post_create"), + path("/reply//", ReplyCreateView.as_view(), name="reply_create"), + # This has to go very last, so that things like banned/ page works + path("/", BoardView.as_view(), name="board_detail"), ] # TODO - make this conditional so we can serve images up with whatever server we want urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)