do not write hello at the project level This is not correct
path('hello/', include('myapp.urls')),
The code below is correct
path('' ",include("myapp.urls"),On Sun, 16 Apr 2023 at 21:34, oluwafemi damilola <[email protected]> wrote: > Your path is 'hello/', but in your browser you are going to 'home', that > path does not exist > > On Fri, 14 Apr 2023 at 23:07, lalit upadhyay <[email protected]> > wrote: > >> *I have copied my code here. Plz fix this error:* >> >> >> view.py >> from django.http import HttpResponse >> >> >> def hello_delhi_capitals(request): >> return HttpResponse('Hello Delhi Capitals!') >> >> >> >> myproject/urls.py >> >> from django.contrib import admin >> from django.urls import path, include >> >> urlpatterns = [ >> path('admin/', admin.site.urls), >> path('hello/', include('myapp.urls')), >> ] >> >> >> >> myapp/urls.py >> >> >> >> from django.urls import path >> from .views import hello_delhi_capitals >> >> urlpatterns = [ >> path('hello/', hello_delhi_capitals, name='hello_delhi_capitals'), >> ] >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Django users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/django-users/b157258f-6697-4bd7-81c7-48e425b4a1edn%40googlegroups.com >> <https://groups.google.com/d/msgid/django-users/b157258f-6697-4bd7-81c7-48e425b4a1edn%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/CALo4fb8kC34MgtuhdDz5MVDotBXvDe-crQLTiWBxLF1q0QmbEw%40mail.gmail.com > <https://groups.google.com/d/msgid/django-users/CALo4fb8kC34MgtuhdDz5MVDotBXvDe-crQLTiWBxLF1q0QmbEw%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAJ%2BiHWZXdE0BmuoUob%3DK%2Bibh82_8u%2BWAgSrTr4Tkz_wR89aQ3A%40mail.gmail.com.

