Tutorial not working

Hi, I;m from .NET core background and I have to use Django. The thing is that the tutorial is not working. I get:

Module ‘polls.views’ has no ‘index’ memberpylint(no-member)

for pool/urls.py file:
from django.urls import path
from . import views
urlpatterns = [
path(’’, views.index, name=‘index’), // <== issue line
]

pool/views file have:
from django.shortcuts import render

Create your views here.

from django.http import HttpResponse
def index():
return HttpResponse(“Hello, world. You’re at the polls index.”)

Is it just a pylint error, or an actual runtime error? And if it’s an actual runtime error, can you post the full traceback/output that you get when you try to ./manage.py runserver?

Thanks and sorry - was my mistake - I failed to save a file (save vs save all cmd in vscode).

1 Like

Thanks It helped me also !

Thank You Soooo Much… It’s really helpful…