aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/settings.py
diff options
context:
space:
mode:
authorGravatar ks129 <[email protected]>2021-04-15 16:27:53 +0300
committerGravatar ks129 <[email protected]>2021-05-03 20:19:50 +0300
commiteda65754f268dd5bbcde54690c77f0580293975e (patch)
treee336c42b214e08ead72929d853872313084d27f6 /pydis_site/settings.py
parentUpdate redirect app tests to take account recent changes (diff)
Add groups with comments to redirections definition
Diffstat (limited to '')
-rw-r--r--pydis_site/settings.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pydis_site/settings.py b/pydis_site/settings.py
index 4e14ab70..babe9e2c 100644
--- a/pydis_site/settings.py
+++ b/pydis_site/settings.py
@@ -297,8 +297,11 @@ CONTENT_PAGES_PATH = Path(BASE_DIR, "pydis_site", "apps", "content", "resources"
# "route:name", "redirection_route_name", ("destination", "args")
# )
REDIRECTIONS = {
+ # Resources
"pages/resources/": ("resources:index", "resources_index_redirect", ()),
"pages/resources/<str:category>/": ("resources:resources", "resources_resources_redirect", ()),
+
+ # Events
"pages/events/": ("events:index", "events_index_redirect", ()),
"pages/code-jams/": ("events:page", "events_code_jams_index_redirect", ("code-jams",)),
}