Ao executar os passos da aula apareceu o seguinte erro:
TemplateDoesNotExist at /
tempus_dominus/widget.html
Request Method: GET
Request URL: http://127.0.0.1:8000/
Django Version: 4.1.7
Exception Type: TemplateDoesNotExist
Exception Value:
tempus_dominus/widget.html
Exception Location: C:\cursos\alura\django\venv\lib\site-packages\django\template\backends\django.py, line 84, in reraise
Raised during: passagens.views.index
Python Executable: C:\cursos\alura\django\venv\Scripts\python.exe
Python Version: 3.10.10
Python Path:
['C:\\cursos\\alura\\django',
'C:\\Program Files\\Python310\\python310.zip',
'C:\\Program Files\\Python310\\DLLs',
'C:\\Program Files\\Python310\\lib',
'C:\\Program Files\\Python310',
'C:\\cursos\\alura\\django\\venv',
'C:\\cursos\\alura\\django\\venv\\lib\\site-packages']
Server time: Sun, 26 Mar 2023 09:54:02 -0300
Template-loader postmortem
Django tried loading these templates, in this order:
Using engine django:
django.template.loaders.filesystem.Loader: C:\cursos\alura\django\templates\tempus_dominus\widget.html (Source does not exist)
django.template.loaders.app_directories.Loader: C:\cursos\alura\django\venv\lib\site-packages\django\contrib\admin\templates\tempus_dominus\widget.html (Source does not exist)
django.template.loaders.app_directories.Loader: C:\cursos\alura\django\venv\lib\site-packages\django\contrib\auth\templates\tempus_dominus\widget.html (Source does not exist)
django.template.loaders.app_directories.Loader: C:\cursos\alura\django\venv\lib\site-packages\bootstrap_datepicker_plus\templates\tempus_dominus\widget.html (Source does not exist)
Error during template rendering
In template C:\cursos\alura\django\venv\lib\site-packages\django\forms\templates\django\forms\table.html, error at line 16
tempus_dominus/widget.html
6 {% for field in hidden_fields %}{{ field }}{% endfor %}
7 {% endif %}
8 </td>
9 </tr>
10 {% endif %}
11 {% for field, errors in fields %}
12 <tr{% with classes=field.css_classes %}{% if classes %} class="{{ classes }}"{% endif %}{% endwith %}>
13 <th>{% if field.label %}{{ field.label_tag }}{% endif %}</th>
14 <td>
15 {{ errors }}
16 {{ field }}
17 {% if field.help_text %}
18 <br>
19 <span class="helptext">{{ field.help_text|safe }}</span>
20 {% endif %}
21 {% if forloop.last %}
22 {% for field in hidden_fields %}{{ field }}{% endfor %}
23 {% endif %}
24 </td>
25 </tr>
26 {% endfor %}
django.template.exceptions.TemplateDoesNotExist: tempus_dominus/widget.html
Podem ajudar?