<filename>mainhome/urls.py
from django.contrib import admin
from django.urls import path
from . import views
urlpatterns = [
    path('', views.mainhome, name="mainhome"),
]

<filename>mainhome/urls.py
from django.contrib import admin
from django.urls import path
from . import views
urlpatterns = [
    path('', views.mainhome, name="mainhome"),
]
