ERROR 404 Django project has a wrong current path

ERROR 404 Django project has a wrong current path

I was creating a basic website following this tutorial:

I was creating a basic website following this tutorial:

When I tried to redirect the home page to my django app called unihub this error prompted:

Using the URLconf defined in TFGsWeb.urls, Django tried these URL patterns, in this order:

admin/ unihub/ ^static/(?P<path>.*)$ The current path, catalog/, didn't match any of these.

My files look like this:




STATIC_URL = '/static/'


from django.contrib import admin
from django.urls import path

Use include() to add paths from the unihub application

from django.urls import include

Add URL maps to redirect the base URL to our application

from django.views.generic import RedirectView

urlpatterns = [ path('admin/',, path('unihub/', include('unihub.urls')), path('', RedirectView.as_view(url='/unihub/', permanent=True)), ]

Use static() to add url mapping to serve static files during development (only)

from django.conf import settings from django.conf.urls.static import static

urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)


from django.urls import path
from . import views

urlpatterns = [


I don't understand why this catalog/ appears when I see no reference to any app or path named catalog/ in the files I did modify.

I'd also like to upload this project to my github so should I just do this for the keys or sensible settings info?

with open('./secret_key.txt') as f:

Angular 9 Tutorial: Learn to Build a CRUD Angular App Quickly

What's new in Bootstrap 5 and when Bootstrap 5 release date?

Brave, Chrome, Firefox, Opera or Edge: Which is Better and Faster?

How to Build Progressive Web Apps (PWA) using Angular 9

What is new features in Javascript ES2020 ECMAScript 2020

Python Django Tutorial | Django Course

🔥Intellipaat Django course: 👉This Python Django tutorial will help you learn what is django web development &...

Developing Restful APIs with Python, Django and Django Rest Framework

This article is a definitive guide for starters who want to develop projects with RESTful APIs using Python, Django and Django Rest Framework.