Bro, From myapp/ urla.py

 Url pattern =[
Path('hello', views.hello_delhi_capitals, name = hello_delhi_capitals)]


On Sat, 15 Apr, 2023, 8:35 pm b1t, <[email protected]> wrote:

> 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 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/2a78750c-9099-41c7-bc5c-5be0a8c06221n%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/2a78750c-9099-41c7-bc5c-5be0a8c06221n%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/CAHjRVdTmDwZ9cp1UTKGO_JNrrc1Kk0hD6w8zsC-VJgB3kLp90w%40mail.gmail.com.

Reply via email to