Answer the question
In order to leave comments, you need to log in
How to make a url?
There are two urls
path('<category_name>/<slug:article_slug>'),
path('user/<int:pk>', views.user_profile),
Answer the question
In order to leave comments, you need to log in
Django checks urls in order and if the first one matches the condition (and in your case it does), then it does not consider further ones.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question