I'm confused by paths in Django.
In the source code for the 'Wiki' problem, the file "wiki/urls.py" has this code (1) in it:
urlpatterns = [
path('admin/', admin.site.urls),
path('', include("encyclopedia.urls"))
]
In the Django lecture (2020 version) at minute 18, Brian writes the following code for his overall project urls.py file. Within the project, he has a separate app called "hello" with this code (2) in the urls.py file.
urlpatterns = [
path('admin/', admin.site.urls),
path('hello/', include("hello.urls"))
]
Why does the code in (1) work? To reach encyclopedia.urls we need to go up a level in the file tree into the encyclopedia app, then into the urls.py file.
In (2) that travelling up a level in the file tree is done by
path('hello/', ... )
Or am I misunderstanding? How does Django know where to find the file it wants in (1)?