T
T
The-TS2020-01-03 11:04:42
Django
The-TS, 2020-01-03 11:04:42

Why does {% endfor %} give an error?

Site on django 3 and there is a page:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
{% for movie in movie_list %}
    {{ movie.title }}
{% endfor %}
</body>
</html>

As a result, go to the page with this file, this happens:
spoiler
TemplateDoesNotExist at /
movies/movie_list.html
Request Method: GET
Request URL: 127.0.0.1:8000
Django Version: 3.0
Exception Type: TemplateDoesNotExist
Exception Value:
movies/movie_list.html
Exception Location: C:\Users\admin\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\template\loader.py in get_template, line 19
Python Executable: C:\Users\admin\AppData\Local\Programs\Python\Python38-32\python.exe
Python Version: 3.8.0
Python Path:
['F:\\TS_Net',
'C:\\Users\\admin\\AppData\\Local\\Programs\\Python\\Python38-32\\python38.zip',
'C:\\Users\\admin\\AppData\\Local\\Programs\\Python\\Python38-32\\DLLs',
'C:\\Users\\admin\\AppData\\Local\\Programs\\Python\\Python38-32\\lib',
'C:\\Users\\admin\\AppData\\Local\\Programs\\Python\\Python38-32',
'C:\\Users\\admin\\AppData\\Roaming\\Python\\Python38\\site-packages',
'C:\\Users\\admin\\AppData\\Local\\Programs\\Python\\Python38-32\\lib\\site-packages',
'C:\\Users\\admin\\AppData\\Local\\Programs\\Python\\Python38-32\\lib\\site-packages\\buildozer-1.0.1.dev0-py3.8.egg']
Server time: Пт, 3 Янв 2020 07:52:43 +0000

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
milssky, 2020-01-03
@Pyhon3x

Your template is not available. TemplateDoesNotExist

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question