Introduce support for Flatpages

Markdown support only
This commit is contained in:
2022-08-07 18:43:58 +02:00
parent f56accb4ff
commit 46477c4576
17 changed files with 194 additions and 10 deletions

View File

@@ -3,6 +3,7 @@ from django.urls import path
from portal.views import (
GetHome,
GetHomeFiltered,
GetFlatpage,
GetRollingStock,
GetConsist,
Consists,
@@ -13,6 +14,11 @@ from portal.views import (
urlpatterns = [
path("", GetHome.as_view(), name="index"),
path("<int:page>", GetHome.as_view(), name="index_pagination"),
path(
"page/<str:flatpage>",
GetFlatpage.as_view(),
name="flatpage",
),
path(
"search",
GetHomeFiltered.as_view(http_method_names=["post"]),