Template does not exist

emplateDoesNotExist at /

main/index.html

Request Method: GET
Request URL: http://localhost:8000/
Django Version: 3.0.7
Exception Type: TemplateDoesNotExist
Exception Value:

main/index.html

Exception Location: C:\Users\Swarad\Desktop\Django\portfolio\env\lib\site-packages\django\template\loader.py in get_template, line 19
Python Executable: C:\Users\Swarad\Desktop\Django\portfolio\env\Scripts\python.exe
Python Version: 3.8.2
Python Path:

[‘C:\Users\Swarad\Desktop\Django\portfolio’,
‘C:\Users\Swarad\Desktop\Django\portfolio\env\Scripts\python38.zip’,
‘c:\users\swarad\appdata\local\programs\python\python38\DLLs’,
‘c:\users\swarad\appdata\local\programs\python\python38\lib’,
‘c:\users\swarad\appdata\local\programs\python\python38’,
‘C:\Users\Swarad\Desktop\Django\portfolio\env’,
‘C:\Users\Swarad\Desktop\Django\portfolio\env\lib\site-packages’]

This is the error. What exactly might be going wrong?
The Exception Type is : TemplateDoesNotExist

In order to make templates , make a directory called templates in your project and store all the templates in it .

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.