P
P
PiggyPig2017-07-22 13:41:29
Django
PiggyPig, 2017-07-22 13:41:29

How to make a hierarchical URL in Django?

Good day! By hierarchically constructed URL, I mean this kind:
domain/section/subsection/article
It's impossible to make such inheritance.
I didn't read their Django documentation - it's useless. Examples about simple URLs.
In general, where I don’t see any examples, all the same g **** - blog / article id.
To make the url inherit from the parent and look not like a serial number in the database, but like a transliteration of the title of an article or section?
Thanks in advance!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Ranwise, 2017-07-22
@PiggyPig

for transliteration, you need to create a slugfield field

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question