A
A
Andrey Kolechko2019-06-30 15:24:13
Django
Andrey Kolechko, 2019-06-30 15:24:13

How to get url path consisting of multiple subdirectories?

There is a typical situation:

path('summary/<str:url>/', any_view, name='any_url')

And here I drive in the link: localhost/summary/root/root/.
How to make it <str:url>give this very line 'root / root'?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Kolechko, 2019-06-30
@AnkoII

In general, he asked - he answered.
Instead of str in such cases, you need to specify path

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question