The report system is pretty low-tech. However the scaffolding is there for a lot of new stuff. What we currently have: * Users can create reports * Staff can view reports * Admins can create report templates There's a post drop-down menu available on all posts now, too. This is where "report post" menu item lives and other things like that can be added too. Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
22 lines
844 B
Python
22 lines
844 B
Python
from django.urls import path
|
|
from django.conf import settings
|
|
from django.conf.urls.static import static
|
|
from django.views.generic.base import TemplateView
|
|
from board.views import *
|
|
|
|
|
|
app_name = "board"
|
|
urlpatterns = [
|
|
path("<slug:url>/", BoardView.as_view(), name="board_detail"),
|
|
path("<slug:url>/page/<int:page>/", BoardView.as_view(), name="board_detail"),
|
|
path("<slug:url>/post/<int:id>/", PostView.as_view(), name="post_detail"),
|
|
path("<slug:url>/report/<int:id>/", ReportView.as_view(), name="report_form"),
|
|
path(
|
|
"report/success/",
|
|
TemplateView.as_view(template_name="board/report_success.html"),
|
|
name="report_success",
|
|
),
|
|
]
|
|
# 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)
|