I was wondering if there is a way in Django to have urls that allow multiple arguments after the /, a variable amount of them.
Here is an example of what I mean:
So if I have a page called about us with a url /page/about_us then I have a page linked from about us called contact info, would it's url be /page/about_us/contact_info which might have another page under it and so on.
How would you write URL processing to allow /page followed by any number of other pages with slashes between? This seems like it would be useful for doing things like bread crumbs and also would make the urls very readable. I just don't know how I would make the regex or a view that can take the variable number pages in the path as arguments.
Would it be best to just use a regex that captures everything after /page/ as one long parameter and then have the view break it down by splitting at the /'s? What would such a regex look like? I don't seem to be able to include a / in a regex without issues.