I have a django application that has / at the end of each conf URL. Example:
(r'^home/$', 'user_home_page'),
However, I notice that this causes a ton of redirects on my server, because when people do not add /, it redirects them. Is there a way to get it to accept both without redirecting other than execution:
(r'^home$', 'user_home_page'),
(r'^home/$', 'user_home_page'),
or should i avoid this kind of url?
source
share