mardi 22 juin 2021

I am new at Django and kept being stuck at the ERROR 404 (Page Not Found)

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