Files
interchan/board/urls.py

15 lines
562 B
Python
Raw Normal View History

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 = [
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"),
]
# 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)