Answer the question
In order to leave comments, you need to log in
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 /
already tried and instead
path( '', include('mainPages.urls' )) # вместо пустых скобок ставил: '/' не помогло
Answer the question
In order to leave comments, you need to log in
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
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 questionAsk a Question
731 491 924 answers to any question