D
D
Dmitry2018-04-03 12:59:46
Django
Dmitry, 2018-04-03 12:59:46

Outputs "TemplateDoesNotExist at /" on django 2.0.3. What's the matter?

Hello, I recently started learning django before I studied python and decided to become a django developer for myself. Since there are no adequate and normal lessons for django v2.0.3, I decided on my own, of course, relying on later version courses and making adjustments to the syntax, the following problem pops up: when you go to the main page (of course I made an application on my site) like this error TemplateDoesNotExist at /
5ac34f102534e251223788.png
already tried and instead

path( '', include('mainPages.urls' )) # вместо пустых скобок ставил: '/' не помогло

it just says "page not found". So I came here in the hope of understanding more senior django developers in my rank. Best wishes to whoever helps.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry, 2018-04-04
@DjangoDev

Thank you very much for giving me your time and pointing out the typo: I wrote templates instead of tamplates.
Special thanks to Rostislav Grigoriev with comment


> tamplates
Here's a typo

M
marataziat, 2018-04-03
@marataziat

Put it in the templates folder, like just make a templates folder in the application and put this template there, then check your mainPS in INSTALLED_APPS

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question