0
I’m developing a Jango website.
Where I own these two structures
main
from django.contrib import admin
from django.urls import path, include
from post import views
urlpatterns = [
path('admin/', admin.site.urls),
path('',views.index),
]
app
from django.contrib import admin
from django.urls import path
from . import views
urlpatterns = [
path("index/",views.index, name='index'),
]
I don’t understand why referencing the URLS in both files, as it seems that I am calling the views of my project twice.
Can you explain to me the functioning of these structures?