Why is django's urls.py import views from from [appname]?

project:firsttest app:blog
D:testdjangofirsttestviews.py in the file

from django.contrib import admin
from django.urls import path
**from blog import views**
-sharp[appname] import

urlpatterns = [
    path("",views.home),
    path("admin/", admin.site.urls),
    path("test/",views.test),
]

where is the blog bound to the actual directory D:testdjangofirsttestblog? I feel like I haven"t configured it like this before

clipboard.png

Apr.14,2022

shouldn't it be from blog.views import [class name]?!

Menu