T
T
temporary hacker hacker2018-04-15 18:43:08
Django
temporary hacker hacker, 2018-04-15 18:43:08

Django 2.0.1 won't launch index.html, how to fix?

Good afternoon!
I can’t run index.html, here are the screenshots with the code
, can anyone help with the problem?

spoiler
5ad372ed175fc890655720.png5ad372f95b4f1276424452.png5ad37304ef9e7834154017.png5ad3730a9ecee254724913.png
urlpatterns = [
    path('admin/', admin.site.urls),
    path('mainapp/', include('mainapp.urls')),

]

from django.urls import path
from . import views
urlpatterns = [
path('', views.index, name='index'),
]

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gornostaev, 2018-04-15
@sergey-gornostaev

You do not have a handler for the address in urls.pyhttp://127.0.0.1:8000/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question