from django.urls import path from django.conf import settings from django.conf.urls.static import static from board.views import * app_name = "board" urlpatterns = [ # 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"), # Reports path("report///", ReportView.as_view(), name="report_form"), path("report/success/", ReportSuccessView.as_view(), name="report_success"), # Bans path("ban///", BanCreateView.as_view(), name="ban_create"), path("ban/success/", BanSuccessView.as_view(), name="ban_success"), path("banned", BannedView.as_view(), name="banned"), ] # 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)