Welcome to JiKe DevOps Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
244 views
in Technique[技术] by (71.8m points)

python - Why are there multiple empty paths in this URL file

So I am new to Django, and I am learning it using an existing app in my company. When I look at the urls.py I see the following:

path('', include('django.contrib.auth.urls')),
path('', include(('apps.resource.urls', 'resource'), namespace='resource')),
path('', include(('apps.lib.urls', 'lib'), namespace='lib')),

So my question is why are there multiple mappings for '' ? I thought it was one pattern and then a url mapping to resolve that pattern. Can anyone help me understand what is happening here?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

Please log in or register to answer this question.

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to JiKe DevOps Community for programmer and developer-Open, Learning and Share
...