Answer the question
In order to leave comments, you need to log in
Problem with urls in Django. How to fix it?
Welcome! I have a question. I just started learning Django, and I ran into a problem with urls. When I follow the link, the line displays 127.0.0.1:8000/order/ when I should go further, it should appear 127.0.0.1:8000/thanks/ and 127.0.0.1:8000/order/thanks/ is displayed and, accordingly, through this error 404. What Am I doing it wrong?
Answer the question
In order to leave comments, you need to log in
Use the Django tag {% url %} for URLs in the "a" tag. Actually, learn how to use it (together with the reverse functions and the lazy version - reverse_lazy).
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question