У меня есть проект с несколькими приложениями.
#my project directory
forecast
#app
authorization
views.py
#project directory where settings
forecast
settings.py
urls.py
#here html templates located
templates
main
base.html
Внутри forecast/urls.py
я определил следующее
from django.contrib import admin
from django.urls import path,include,re_path
from django.contrib.auth import views as auth_views
from authorization.views import
index_page_view
urlpatterns=[
path(r'^$',index_page_view,name='home')]
В authorization/views.py
определил вид для отображения главной страницы
def index_page_view(request):
return render(request,'main/base.html',{})
Когда я открыт http://127.0.0.1: 8000 я вижу ошибку 404 со следующим сообщением
^$ [name='home']
The empty path didn't match any of these.
Что не так в моей настройке?