Well first i’d like to thank you for the reply @KenWhitesell .
(As a side note, I always recommend against copy/paste the tutorial code. You learn a whole lot more by typing it in. Your brain ends up having to focus on the details of every line, enhancing your comprehension and improving knowledge retention. You’re not doing yourself any favors by taking a short-cut.)
This case is just referred to the end of the tutorial 1/7
where you learn about the include function
Also, with reference to the tutorial, it helps if you identify which page and paragraph you’re on, so we know what should have been done to this point.
Usually never do copy and paste, unless there is an error which i do not understand at all. just to see if it works, when you do copy and paste. i like the challange where you’re using the tutorial(s) just as an reference.
here is the urls.py
urls.py below
from app import views
from django.contrib import admin
from django.urls import include, path
urlpatterns = [
path('polls/', include('polls.urls')),
path('admin/', admin.site.urls),
path('', views.index, name='index'),
]
here is the views.py
from django.shortcuts import render
from django.http import HttpResponse
def index(request):
return HttpResponse("my first django app")
Error from the managa.py
File "C:\Users\krigj\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\django\urls\resolvers.py", line 413, in check
messages.extend(check_resolver(pattern))
File "C:\Users\krigj\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\django\core\checks\urls.py", line 23, in check_resolver
return check_method()
File "C:\Users\krigj\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\django\urls\resolvers.py", line 413, in check
messages.extend(check_resolver(pattern))