D
D
Denis Lvov2019-11-13 11:54:51
Django
Denis Lvov, 2019-11-13 11:54:51

How in django to refer to the name of the link located in the main url?

Basically, the url contains a link with the name
from the application, I want to access this name, but it gives an error not found
Tell me how to implement
the main url more correctly:

urlpatterns = [
path('test/', include('testapp.urls'), name='test'),
}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dr. Bacon, 2019-11-13
@bacon

And who gave you the idea? You include testapp.urls, all names must be defined in it, not at this level.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question