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.”)