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.
- python : Broke the type of admin in Django
- python : How to set parameters during parsing
- python : How not to violate the DRY principle in the presentation? Best practics
- python : How to connect fonts in Django?
- Does not keep a form in Django Python
- python : Recruiling graphs through Django-Google-Charts
- python : Django: TeachersDetailView does not display items from the database
- python : How to transfer the parameter when sending a request to the site in URL
- The output of the model with ForeignKey shows PK, and not its text field. Django, Python
- python : POST request Django