Skip to content

Error with root page #2

Description

@tuhulab

Hi there, I encounter this error. Any advise how to fix it?
Screenshot 2024-11-22 at 08 44 59

I cloned the repo to my local and followed the installation instructions. After python3 manage.py runserver. I saw the above shown error.

As advised by copilot, I edited the following file and can fix it:

# newui/urls.py
from django.contrib import admin
from django.urls import include, path
from django.http import HttpResponse

def home(request):
    return HttpResponse("Welcome to the home page!")

urlpatterns = [
    path('admin/', admin.site.urls),
    path('schatbot/', include('schatbot.urls')),
    path('', home),  # Add this line to handle the root URL
]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions