Using the URLconf defined in firstProject.urls, Django tried these URL patterns, in this order: index/ [name='main-view'] admin/ The empty path didn’t match any of these.
from django.contrib import admin
from django.urls import include,path
from firstApp import views
urlpatterns = [
path('index/',views.index, name = 'main-view'),
path('admin/', admin.site.urls),
]
Aucun commentaire:
Enregistrer un commentaire