D
D
daho0052020-06-11 20:18:16
Django
daho005, 2020-06-11 20:18:16

Django question. How to deepen a URL?

So. I made it so that in the admin panel you could add an article and link it to another article, and so on ad infinitum. How do I implement this in urls.py in my web app so that it looks like this:

http://127.0.0.1:8000/catalog1/subcatalog1/article1/subarticle1/
etc.
Please help)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dr. Bacon, 2020-06-12
@bacon

Why do we need such a footcloth in the url? in fact, two types of url are enough:
1. /catalog/slug_or_id/
2. /article/slug_or_id/
And display the footcloth of links already in html

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question