Friday, June 25, 2021

Re: i am trying to learn django from django documentation but i am getting an error message in the first part of the documentation

I started learning Django from the documentation but it was very hard for me and it took me a very long time to grasp the concept 

I suggest you try using books by w.s vincent http://wsvincent.com/books/ these are the best for me and them help you stay engaged   

On Wed, Jun 23, 2021 at 5:19 PM vatsal narula <vatsalnarula53@gmail.com> wrote:

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

admin/ The current path, polls/, didn't match any of these. this is the error i am getting after i wrote the following code:

  1. for urls.py

    from django.contrib import admin from django.urls import include, path urlpatterns = [ path('polls/', include('polls.urls')), path('admin/', admin.site.urls), ]
  2. for polls/urls.py

    from django.urls import path from . import views urlpatterns = [ path('', views.index, name='index'), ]

3.for polls/views.py

 """ from django.http import HttpResponse

def index(request): return HttpResponse("Hello, world. You're at the polls index.") """

how i can i remove this error in vs code

--
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 django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/5750b076-eddf-400d-b180-4ec7d46aa0e3n%40googlegroups.com.

--
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 django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CANPYDAttdvo3pLcQQ_j5uS3T0%2BNvYB_eSXn%2BMmS%2BO9s9n0i4OQ%40mail.gmail.com.

No comments:

Post a Comment