Home>

There are pages:

url (r '^ (? p <
Slug >
[\ w -] +) /$ ', redirectview.as_view (url= request.path [: -1])),
URL (R '^ (? P <
Slug >
[\ w -] +) $ ', postsdetailview.as_view ()),

Tell me how to make a redirect from the page with a layer on the tighure of the page without a slash. Thanks in advance

  • Answer # 1

    Do not like bike properly. Django at the end of the URL, if it is not there.