K
K
Kirill2020-04-19 03:46:38
Django
Kirill, 2020-04-19 03:46:38

Django urls - path() or url()?

What is the difference between url() and path() in urls.py? What is better to use?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dr. Bacon, 2020-04-19
@kustiktm_kirill

learning to read docs https://docs.djangoproject.com/en/3.0/topics/http/urls/
url has been deprecated for a long time, re_path instead, if you are not satisfied with the possibilities of path

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question