I
I
Ivan Hrushka2016-04-17 09:13:56
Django
Ivan Hrushka, 2016-04-17 09:13:56

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

1 answer(s)
R
Roman Kitaev, 2016-04-17
@deliro

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 question

Ask a Question

731 491 924 answers to any question