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