Skip to content

Commit 41ad286

Browse files
authored
Merge pull request #170 from Jer-Pha/url-shortcuts
Add redirect url shortcuts for external links
2 parents 7b3c87f + 59de034 commit 41ad286

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

pythonsd/urls.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,21 @@
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(
74+
url="https://discord.gg/8GpWuVvdbQ",
75+
permanent=False,
76+
),
77+
),
78+
path(
79+
r"youtube/",
80+
generic.RedirectView.as_view(
81+
url="https://www.youtube.com/@sandiegopython/streams",
82+
permanent=False,
83+
),
84+
),
7085
]
7186

7287
urlpatterns += redirects

0 commit comments

Comments
 (0)