Urls point not working

I have a probllem maybe colud someone help me.

I got 2 startapp folders.
1- erp
2-homepage this is the last.

I got principal templates to manage.
but I made tempplates on homepage so


urlpatterns = [
    path('admin/', admin.site.urls),
    path('erp/', include('Apps.erp.urls')),
    path('', IndexView.as_view()),


# Create your views here.
from django.views.generic import TemplateView

class IndexView(TemplateView):
    template_name = 'index.html'

and then when I run the program take from main templates home.html but I set on urls
path('', IndexView.as_view()),
but not working

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.