After django templates folder created no solution

I and execute python manage.py startapp app001 in mysite folder by django-admin startproject mysite to create a name APP

Html folder are not equipped with the folder templates

 

 

 Just have to create a file named templates folder in the folder mysite

 

 

Then configure the path setting.py

 

 

 Add the contents of the red box on it

 

HTML files created in the templates folder can function in view file a successful call

 

 Then try running python manage.py runserver 8080 you can see the contents of the html on the page

 

Guess you like

Origin www.cnblogs.com/CIBud/p/12504360.html