Django URL не отображается даже без ошибок, почему?
папка startproject (URLS.PY):-
from django.contrib import adminfrom django.urls import path, include urlpatterns =
[
path('admin/', admin.site.urls),
path('', include('sub.urls')),
]
папка django startapp (URLS.PY):-
from django.urls import path
from . import views
urlpatterns =
[
path('', views.home, name= 'home'),
]
папка django startapp (VIEWS.PY):-
from django.http import HttpResponse
def home(request):
return HttpResponse("hello world")