You define hello/ in your base urls.py file and again in your
myapp/urls.py so that's create a URL like this "127.0.0.1/hello/hello".
instead use this in your myapp/urls.py
urlpatterns = [
path('', hello_delhi_capitals, name='hello_delhi_capitals'),
]
On Saturday, 15 April 2023 at 13:57:36 UTC+
ou haven't defined the home url that you are trying to access
On Saturday, 15 April 2023 at 03:37:38 UTC+5:30 lalit upadhyay wrote:
> *I have copied my code here. Plz fix this error:*
>
>
> view.py
> from django.http import HttpResponse
>
>
> def hello_delhi_capitals(request):
> return HttpRespon
You are trying to access the home/ URL which u haven't defined yet
On Saturday, 15 April 2023 at 03:37:38 UTC+5:30 lalit upadhyay wrote:
> *I have copied my code here. Plz fix this error:*
>
>
> view.py
> from django.http import HttpResponse
>
>
> def hello_delhi_capitals(request):
> return HttpR
3 matches
Mail list logo