Add home and rules pages

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
2022-07-17 18:16:30 -07:00
parent b40b65bef6
commit 4709f5567e
4 changed files with 81 additions and 1 deletions

View File

@@ -2,13 +2,23 @@ from django.conf import settings
from django.conf.urls.static import static
from django.urls import path
from django.utils.translation import gettext as _
from django.views.generic.base import TemplateView
from board.views import *
app_name = "board"
urlpatterns = [
# Index
path("", HomeView.as_view(), name="home"),
# News views
path("news/", NewsListView.as_view(), name="board_news"),
path("news/", NewsListView.as_view(), name="news_list"),
# Rules views
path(
"rules/",
TemplateView.as_view(template_name="board/rules.html"),
name="rules_list",
),
# Reports
path("report/<slug:url>/<int:id>/", ReportView.as_view(), name="report_form"),
path(