Add home and rules pages
Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user