TemplateDoesNotExist
Salut
en suivant pas à pas la video j'ai cette erreur quand je refreash ma page. Un problème dans mon fichier settings.py ?
Je tourne en rond ...
coté localhost :
TemplateDoesNotExist at /budget/
budget/create_category.html
Request Method: GET
Request URL: http://127.0.0.1:8000/budget/
Django Version: 4.2.9
Exception Type: TemplateDoesNotExist
Exception Value:
budget/create_category.html
Exception Location: /home/jeanfi/code/JeanfiMH/2024/aa1_budget/.env/lib/python3.9/site-packages/django/template/loader.py, line 19, in get_template
Raised during: budget.views.create_category
Python Executable: /home/jeanfi/code/JeanfiMH/2024/aa1_budget/.env/bin/python
Python Version: 3.9.16
Python Path:
['/home/jeanfi/code/JeanfiMH/2024/aa1_budget/src',
'/usr/lib/python39.zip',
'/usr/lib/python3.9',
'/usr/lib/python3.9/lib-dynload',
'/home/jeanfi/code/JeanfiMH/2024/aa1_budget/.env/lib/python3.9/site-packages']
Server time: Tue, 09 Jan 2024 21:36:24 +0000
coté terminal:
Traceback (most recent call last):
File "/home/jeanfi/code/JeanfiMH/2024/aa1_budget/.env/lib/python3.9/site-packages/django/core/handlers/exception.py", line 55, in inner
response = get_response(request)
File "/home/jeanfi/code/JeanfiMH/2024/aa1_budget/.env/lib/python3.9/site-packages/django/core/handlers/base.py", line 197, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/home/jeanfi/code/JeanfiMH/2024/aa1_budget/src/budget/views.py", line 14, in create_category
return render(request, "budget/create_category.html", {"form":form})
File "/home/jeanfi/code/JeanfiMH/2024/aa1_budget/.env/lib/python3.9/site-packages/django/shortcuts.py", line 24, in render
content = loader.render_to_string(template_name, context, request, using=using)
File "/home/jeanfi/code/JeanfiMH/2024/aa1_budget/.env/lib/python3.9/site-packages/django/template/loader.py", line 61, in render_to_string
template = get_template(template_name, using=using)
File "/home/jeanfi/code/JeanfiMH/2024/aa1_budget/.env/lib/python3.9/site-packages/django/template/loader.py", line 19, in get_template
raise TemplateDoesNotExist(template_name, chain=chain)
django.template.exceptions.TemplateDoesNotExist: budget/create_category.html
[09/Jan/2024 21:36:24] "GET /budget/ HTTP/1.1" 500 74142