Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

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?


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

1 Answer

等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...