Using the URLconfigured in mysite.urls, Django tried these options.

That's what's in mysite \ urls.py

from django.contrib import admin from django.urls import path, include urlpatterns = [ path('admin/', admin.site.urls), path('mainApp/', include('mainApp.urls')), path('wubwub/', include('wubwub.urls')), ] 

This is mysite \ mainApp \ urls.py

 from django.urls import path from . import views urlpatterns = [ path('mainApp/', views.index, name='index') ] 

mysite \ mainApp \ views.py

 from django.shortcuts import render def index(request): return render(request, 'mainApp/homePage.html') 

    1 answer 1

    Didn’t match any of these.

    Judging by the error, you requested / , but you do not have a handler for this URL.

    • one
      Thank you, you sent me in the right direction. Replaced in both urls.py 'mainApp /' with 'and everything works. - Alex Flow