Skip to content

Commit e5381c0

Browse files
committed
Add redirect url shortcuts for external links
1 parent 7b3c87f commit e5381c0

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

pythonsd/urls.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,18 @@
6767
r"pages/job-posting-guidelines.html",
6868
generic.RedirectView.as_view(url="/", permanent=False),
6969
),
70+
# URL shortcuts for popular external links
71+
path(
72+
r"discord/",
73+
generic.RedirectView.as_view(url="https://discord.gg/8GpWuVvdbQ", permanent=False),
74+
),
75+
path(
76+
r"youtube/",
77+
generic.RedirectView.as_view(
78+
url="https://www.youtube.com/@sandiegopython/streams",
79+
permanent=False,
80+
),
81+
),
7082
]
7183

7284
urlpatterns += redirects

0 commit comments

Comments
 (0)