0π
β
Just adding as an answer instead of comment:
If you are working with dynamic URL routing that has no prefix it matches all the URLs that can appear on the site. Django evaluates the patterns in order they are defined so the dynamic one should be after all the specific ones and then when checkout and cart are not matched the dynamic one will process it.
In your case place the dynamic route after cart and checkout routes.
π€preator
- [Answered ]-Get page url and shorten link in Django Template
- [Answered ]-Django-cms absolute urls to pages
- [Answered ]-How to crop an image selected with django-filer in django admin
Source:stackexchange.com